mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
27 lines
525 B
C++
27 lines
525 B
C++
#ifndef TEXTBROWSERTWEAKED1_H
|
|
#define TEXTBROWSERTWEAKED1_H
|
|
|
|
#include <QTextBrowser>
|
|
#include <QUrl>
|
|
|
|
class TextBrowserTweaked1 : public QTextBrowser
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TextBrowserTweaked1(QWidget * parent);
|
|
//virtual void setSource(const QUrl & url);
|
|
|
|
signals:
|
|
void mouseReleased();
|
|
//void navigatedTo(const QUrl & link);
|
|
|
|
protected:
|
|
void mouseReleaseEvent(QMouseEvent *event) {
|
|
QTextBrowser::mouseReleaseEvent(event);
|
|
emit mouseReleased();
|
|
}
|
|
};
|
|
|
|
#endif // TEXTBROWSERTWEAKED1_H
|