File indexing completed on 2024-04-14 03:40:31
0001 /*************************************************************************** 0002 * Copyright (C) 2004-2005 by Albert Astals Cid * 0003 * aacid@kde.org * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 ***************************************************************************/ 0010 0011 #ifndef MYPOPUP_H 0012 #define MYPOPUP_H 0013 0014 #include <QFrame> 0015 0016 class QLabel; 0017 0018 class myPopup : public QFrame 0019 { 0020 Q_OBJECT 0021 friend class popupManager; 0022 0023 private: 0024 myPopup(QWidget *parent, const QString &text, const QString &wikiLink, const QString &text2 = QString(), const QString &flagFile = QString()); 0025 0026 Q_SIGNALS: 0027 void deleteMe(); 0028 0029 protected: 0030 void mousePressEvent(QMouseEvent *) override; 0031 bool eventFilter(QObject *obj, QEvent *ev) override; 0032 0033 private: 0034 QString wikipedia; 0035 QLabel *wiki; 0036 }; 0037 0038 #endif