CollapsibleDockWidget Class Reference

A QDockWidget which provides the possibility to collapse the dock. More...

#include <MemoryX/gui-plugins/SceneEditor/gui/CollapsibleDockWidget.h>

+ Inheritance diagram for CollapsibleDockWidget:

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...
 

Detailed Description

A QDockWidget which provides the possibility to collapse the dock.

See also
QDockWidget

Definition at line 41 of file CollapsibleDockWidget.h.

Constructor & Destructor Documentation

◆ CollapsibleDockWidget() [1/2]

CollapsibleDockWidget ( const QString &  title,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
explicit

Creates a new CollapsibleDockWidget.

This calls the constructor of the QDockWidget.

Parameters
titleThe window title of the DockWidget.
parentThe parent QWidget.
Theflags to create the DockWidget with.
See also
QDockWidget

Definition at line 34 of file CollapsibleDockWidget.cpp.

◆ CollapsibleDockWidget() [2/2]

CollapsibleDockWidget ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
explicit

Creates a new CollapsibleDockWidget.

This calls the constructor of the QDockWidget.

Parameters
parentThe parent QWidget.
Theflags to create the DockWidget with.
See also
QDockWidget

Definition at line 41 of file CollapsibleDockWidget.cpp.

Member Function Documentation

◆ isCollapsed()

bool isCollapsed ( )

Returns is the widget is collapsed.

Returns
The current state of the widdget.

Definition at line 74 of file CollapsibleDockWidget.cpp.

◆ setCollapsed

void setCollapsed ( bool  collapsed)
slot

Sets the collapsed state.

The widget will be collapsed if and only if "collapsed" is true.

Parameters
collapsedThe new state of the widget.

Definition at line 60 of file CollapsibleDockWidget.cpp.

◆ setCollapsibleWidget()

void setCollapsibleWidget ( QWidget *  w)

Sets a QWidget to show in the DockWidget.

If you use this method the DockWidget is collapsible.

Parameters
wThe widget to set.

Definition at line 48 of file CollapsibleDockWidget.cpp.

◆ toggleCollapsed

void toggleCollapsed ( )
slot

Toggles the collapsed state of the widget.

Definition at line 80 of file CollapsibleDockWidget.cpp.

◆ windowTitleChanged()

void windowTitleChanged ( )

A method to inform the widget, that the window title has been changed.

Definition at line 85 of file CollapsibleDockWidget.cpp.


The documentation for this class was generated from the following files: