mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-12 00:00:44 -04:00
Add context menu to show hidden image on lobby.
A tooltip show hidden image too. The RSImageBlockWidget is removed.
This commit is contained in:
parent
854eebb2cb
commit
fdfd2e9248
7 changed files with 134 additions and 54 deletions
|
@ -1,13 +1,13 @@
|
|||
#include "imageutil.h"
|
||||
#include "util/misc.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QTextCursor>
|
||||
#include <QByteArray>
|
||||
#include <QString>
|
||||
#include <QImage>
|
||||
#include <QTextDocumentFragment>
|
||||
#include <QApplication>
|
||||
#include <QByteArray>
|
||||
#include <QImage>
|
||||
#include <QMessageBox>
|
||||
#include <QString>
|
||||
#include <QTextCursor>
|
||||
#include <QTextDocumentFragment>
|
||||
|
||||
ImageUtil::ImageUtil() {}
|
||||
|
||||
|
@ -42,10 +42,3 @@ void ImageUtil::extractImage(QWidget *window, QTextCursor cursor)
|
|||
}
|
||||
}
|
||||
|
||||
bool ImageUtil::checkImage(QTextCursor cursor)
|
||||
{
|
||||
cursor.movePosition(QTextCursor::Left, QTextCursor::MoveAnchor, 1);
|
||||
cursor.movePosition(QTextCursor::Right, QTextCursor::KeepAnchor, 2);
|
||||
QString imagestr = cursor.selection().toHtml();
|
||||
return imagestr.indexOf("base64,") != -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue