QSint Library  0.2.2
widgetpopup.h
1 #ifndef WIDGETPOPUP_H
2 #define WIDGETPOPUP_H
3 
4 #include <QFrame>
5 
6 
7 namespace QSint
8 {
9 
10 
22 class WidgetPopup : public QFrame
23 {
24  Q_OBJECT
25 
26 public:
32  WidgetPopup(QWidget *parent = 0);
33 
37  void setWidget(QWidget *widget, bool own = true);
40  inline QWidget* widget() const { return m_widget; }
43  inline bool isOwned() const { return m_own; }
44 
45 public slots:
48  void show(QPoint coord);
49 
50 protected:
51  QWidget *m_widget;
52  bool m_own;
53  QWidget *m_oldParent;
54 };
55 
56 
57 } // namespace
58 
59 #endif // WIDGETPOPUP_H
void setWidget(QWidget *widget, bool own=true)
Definition: widgetpopup.cpp:26
void show(QPoint coord)
Definition: widgetpopup.cpp:55
bool isOwned() const
Definition: widgetpopup.h:43
WidgetPopup(QWidget *parent=0)
Definition: widgetpopup.cpp:11
QWidget * widget() const
Definition: widgetpopup.h:40
Class showing a widget as popup window.
Definition: widgetpopup.h:22

© Sintegrial Technologies 2011-2014
http://www.sintegrial.com