Definition at line 143 of file guiutils.h.
Constructor with the widget to move.
popup | Widget to move (it needn't be a popup :-). | |
visParent | Optional visual parent of popup. If 0 its real parent is used. |
bool OSB_GUI::PopupMover::intoTop | ( | bool | coverParent | ) |
Move popup_ into topLevel_, near the parent.
coverParent | Flag to cover the parent widget. |
Calls intoTop() if popup_ can not be aligned with the corners or edges of parent_ such that it is inside topLevel_.
bool OSB_GUI::PopupMover::intoTop | ( | ) |
QRect OSB_GUI::PopupMover::rect | ( | const QWidget * | widget, | |
bool | relTop | |||
) | const [private] |
Get a widget's rect relative to the screen or top-level widget.
const QWidget* OSB_GUI::PopupMover::parent_ [private] |
QWidget* OSB_GUI::PopupMover::popup_ [private] |
const QWidget* OSB_GUI::PopupMover::topLevel_ [private] |