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.
 
void toggleCollapsed ()
 Toggles the collapsed state of the widget.
 

Public Member Functions

 CollapsibleDockWidget (const QString &title, QWidget *parent=0, Qt::WindowFlags flags=0)
 Creates a new CollapsibleDockWidget.
 
 CollapsibleDockWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 Creates a new CollapsibleDockWidget.
 
bool isCollapsed ()
 Returns is the widget is collapsed.
 
void setCollapsibleWidget (QWidget *w)
 Sets a QWidget to show in the DockWidget.
 
void windowTitleChanged ()
 A method to inform the widget, that the window title has been changed.
 

Detailed Description

A QDockWidget which provides the possibility to collapse the dock.

See also
QDockWidget

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

◆ 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

Member Function Documentation

◆ isCollapsed()

bool isCollapsed ( )

Returns is the widget is collapsed.

Returns
The current state of the widdget.

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

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

◆ toggleCollapsed

void toggleCollapsed ( )
slot

Toggles the collapsed state of the widget.

◆ windowTitleChanged()

void windowTitleChanged ( )

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


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