Definition at line 61 of file osbpopup.h.
OSB_GUI::Popup::Popup | ( | QWidget * | parent, | |
const char * | name, | |||
WFlags | flags = Qt::WType_Popup | |||
) | [explicit] |
virtual OSB_GUI::Popup::~Popup | ( | ) | [pure virtual] |
Empty virtual destructor.
virtual void OSB_GUI::Popup::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
Handle close events: signals sigClosed().
bool OSB_GUI::Popup::keyClosed | ( | ) | const |
Flag if the widget from keyPressEvent().
virtual void OSB_GUI::Popup::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Handle pressed keys.
Closes the widget for Tab or Shift-Tab or Esc.
For the latter result_ is set to false.
void OSB_GUI::Popup::popup | ( | QWidget * | served, | |
const QPoint & | pos | |||
) |
Show the widget as pop-up.
served | Widget requesting the pop-up. | |
pos | Popup position (upper left). |
void OSB_GUI::Popup::popup | ( | QWidget * | served | ) |
Show the widget as pop-up.
served | Widget requesting the pop-up. |
void OSB_GUI::Popup::resetPrevServed | ( | ) |
Reset prevServed_ to 0.
bool OSB_GUI::Popup::result | ( | ) | const |
Get the popup result.
void OSB_GUI::Popup::sigClosed | ( | bool | result | ) | [signal] |
Signal sent if widget is closed.
result | false if the popup was escaped, else true. |
bool OSB_GUI::Popup::keyClosed_ [private] |
Flag if closed from keyPressEvent().
If false the widget was closed by a mouse event. However the class does not handle mouse events, so there is a chance that other reasons exist, but AFAIKS these should not be relevant.
Definition at line 139 of file osbpopup.h.
QWidget* OSB_GUI::Popup::prevServed_ [private] |
bool OSB_GUI::Popup::result_ [private] |
QWidget* OSB_GUI::Popup::served_ [private] |