|
A QDockWidget which provides the possibility to collapse the dock. More...
#include <MemoryX/gui-plugins/SceneEditor/gui/CollapsibleDockWidget.h>
Public Slots | |
void | setCollapsed (bool collapsed) |
Sets the collapsed state. More... | |
void | toggleCollapsed () |
Toggles the collapsed state of the widget. More... | |
Public Member Functions | |
CollapsibleDockWidget (const QString &title, QWidget *parent=0, Qt::WindowFlags flags=0) | |
Creates a new CollapsibleDockWidget. More... | |
CollapsibleDockWidget (QWidget *parent=0, Qt::WindowFlags flags=0) | |
Creates a new CollapsibleDockWidget. More... | |
bool | isCollapsed () |
Returns is the widget is collapsed. More... | |
void | setCollapsibleWidget (QWidget *w) |
Sets a QWidget to show in the DockWidget. More... | |
void | windowTitleChanged () |
A method to inform the widget, that the window title has been changed. More... | |
A QDockWidget which provides the possibility to collapse the dock.
Definition at line 41 of file CollapsibleDockWidget.h.
|
explicit |
Creates a new CollapsibleDockWidget.
This calls the constructor of the QDockWidget.
title | The window title of the DockWidget. |
parent | The parent QWidget. |
The | flags to create the DockWidget with. |
Definition at line 34 of file CollapsibleDockWidget.cpp.
|
explicit |
Creates a new CollapsibleDockWidget.
This calls the constructor of the QDockWidget.
parent | The parent QWidget. |
The | flags to create the DockWidget with. |
Definition at line 41 of file CollapsibleDockWidget.cpp.
bool isCollapsed | ( | ) |
Returns is the widget is collapsed.
Definition at line 74 of file CollapsibleDockWidget.cpp.
|
slot |
Sets the collapsed state.
The widget will be collapsed if and only if "collapsed" is true.
collapsed | The new state of the widget. |
Definition at line 60 of file CollapsibleDockWidget.cpp.
void setCollapsibleWidget | ( | QWidget * | w | ) |
Sets a QWidget to show in the DockWidget.
If you use this method the DockWidget is collapsible.
w | The widget to set. |
Definition at line 48 of file CollapsibleDockWidget.cpp.
|
slot |
Toggles the collapsed state of the widget.
Definition at line 80 of file CollapsibleDockWidget.cpp.
void windowTitleChanged | ( | ) |
A method to inform the widget, that the window title has been changed.
Definition at line 85 of file CollapsibleDockWidget.cpp.