i2pd/qt/i2pd_qt/textbrowsertweaked1.h

27 lines
525 B
C
Raw Normal View History

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