Widget destroying itself on certain signal. More...
#include <selfdestructivewidget.h>
Public Member Functions | |
| SelfDestructiveWidget (QWidget *killer, QWidget *parent=0, const char *name=0, WFlags f=0) | |
| ~SelfDestructiveWidget () | |
Widget destroying itself on certain signal.
Widget class that will destruct when appropriate signal from killer window is sent
Killer window can be any window, but must emit signal "selfDestruct()" for this widget to work
Used for helper dialogs that should close themselves when file/item they are editing is also closed
| gui::SelfDestructiveWidget::SelfDestructiveWidget | ( | QWidget * | killer, | |
| QWidget * | parent = 0, |
|||
| const char * | name = 0, |
|||
| WFlags | f = 0 | |||
| ) |
Default constructor of Self destructive widget
| killer | Window that will destruct this widget | |
| parent | parent widget (passed to QWidget) | |
| name | name of this widget (passed to QWidget) | |
| f | Widget flags (passed to QWidget) |
| gui::SelfDestructiveWidget::~SelfDestructiveWidget | ( | ) |
default destructor