#include <QtUtilities.h>
Static Public Member Functions | |
static void | putInFrame (QFrame *frame, QWidget *widget) |
Puts the given widget into the given frame. | |
static void | putInFrame (QFrame *frame, QLayout *layout) |
Puts the given layout into the given frame. | |
static QScrollArea * | putInScrollArea (QWidget *widget, bool showFrame=false) |
Puts the given widget into a QScrollArea, then replaces the widget in its parent's layout (if applicable), then returns the scroll area. |
Definition at line 34 of file QtUtilities.h.
static void casa::QtUtilities::putInFrame | ( | QFrame * | frame, | |
QLayout * | layout | |||
) | [static] |
Puts the given layout into the given frame.
If the given frame already has a layout, it is deleted.
static void casa::QtUtilities::putInFrame | ( | QFrame * | frame, | |
QWidget * | widget | |||
) | [static] |
Puts the given widget into the given frame.
static QScrollArea* casa::QtUtilities::putInScrollArea | ( | QWidget * | widget, | |
bool | showFrame = false | |||
) | [static] |
Puts the given widget into a QScrollArea, then replaces the widget in its parent's layout (if applicable), then returns the scroll area.