QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
C:/Users/max/ti/qt5/qvisu/qvpopupframe.h
1 /* QVisu (c) 2015 Maximilian Gauger mgauger@kalassi.de
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12 
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef QVPOPUPFRAME_H
18 #define QVPOPUPFRAME_H
19 
20 #include <QLabel>
21 #include <QFrame>
22 #include <QGridLayout>
23 
24 class QVPopupFrame : public QFrame
25 {
26  Q_OBJECT
27 public:
28  explicit QVPopupFrame(QWidget *parent = 0);
29  QFrame *content();
30 
31 protected:
32  void mousePressEvent(QMouseEvent *);
33 
34 signals:
35  void clicked();
36 
37 public slots:
38  void show();
39  void place(int x, int y, int w, int h);
40 
41 private:
42  QFrame *inner_frame;
43 };
44 
45 #endif // QVPOPUPFRAME_H
Definition: qvpopupframe.h:24