File indexing completed on 2024-05-05 04:57:29
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2011-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 #ifndef MYTEXTBROWSER_H 0010 #define MYTEXTBROWSER_H 0011 0012 #include <QTextBrowser> 0013 0014 class MyTextBrowser : public QTextBrowser 0015 { 0016 Q_OBJECT 0017 public: 0018 MyTextBrowser(QWidget *parent = nullptr); 0019 virtual ~MyTextBrowser(); 0020 0021 Q_SIGNALS: 0022 void mouseEntered(); 0023 void mouseLeaved(); 0024 void clicked(); 0025 0026 protected: 0027 virtual void enterEvent(QEvent *e) override; 0028 virtual void leaveEvent(QEvent *e) override; 0029 virtual void mousePressEvent(QMouseEvent *ev) override; 0030 }; 0031 0032 #endif // MYTEXTBROWSER_H