- Added blocking of embedded images (+ settings) to forums and messages

- Added image support for forum messages
- Renamed LinkTextBrowser to RSTextBrowser
- Updated english translation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6752 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-09-23 19:53:26 +00:00
parent 8ffc0e05de
commit 6b1613d8bb
31 changed files with 907 additions and 454 deletions

View file

@ -0,0 +1,36 @@
#ifndef RSTEXTBROWSER_H
#define RSTEXTBROWSER_H
#include <QTextBrowser>
class RSImageBlockWidget;
class RSTextBrowser : public QTextBrowser
{
Q_OBJECT
public:
explicit RSTextBrowser(QWidget *parent = 0);
void setPlaceholderText(const QString &text);
void setImageBlockWidget(RSImageBlockWidget *widget);
void resetImagesStatus(bool load);
virtual QVariant loadResource(int type, const QUrl &name);
public slots:
void showImages();
private slots:
void linkClicked(const QUrl &url);
void destroyImageBlockWidget();
protected:
void paintEvent(QPaintEvent *event);
QString mPlaceholderText;
bool mShowImages;
RSImageBlockWidget *mImageBlockWidget;
};
#endif // RSTEXTBROWSER_H