i2pd/qt/i2pd_qt/textbrowsertweaked1.h

27 lines
525 B
C
Raw Normal View History

2017-08-01 21:40:11 +03:00
#ifndef TEXTBROWSERTWEAKED1_H
#define TEXTBROWSERTWEAKED1_H
#include <QTextBrowser>
2017-08-20 05:22:30 +03:00
#include <QUrl>
2017-08-01 21:40:11 +03:00
class TextBrowserTweaked1 : public QTextBrowser
{
Q_OBJECT
public:
2017-08-20 05:22:30 +03:00
TextBrowserTweaked1(QWidget * parent);
//virtual void setSource(const QUrl & url);
2017-08-01 21:40:11 +03:00
signals:
void mouseReleased();
2017-08-20 05:22:30 +03:00
//void navigatedTo(const QUrl & link);
2017-08-01 21:40:11 +03:00
protected:
void mouseReleaseEvent(QMouseEvent *event) {
2017-08-20 05:22:30 +03:00
QTextBrowser::mouseReleaseEvent(event);
2017-08-01 21:40:11 +03:00
emit mouseReleased();
}
};
#endif // TEXTBROWSERTWEAKED1_H