Enhanced dockable widget class.
#include <QtxDockWidget.h>

Data Structures | |
| class | Watcher |
| Internal class which goal is to watch parent dockable widget state changing. More... | |
Public Slots | |
| virtual void | setVisible (bool) |
| Show/hide the dockable window. | |
Signals | |
| void | orientationChanged (Qt::Orientation) |
| Emitted when the dockable window orientation is changed. | |
Public Member Functions | |
| QtxDockWidget (const QString &, QWidget *=0, Qt::WindowFlags=0) | |
| Constructor. | |
| QtxDockWidget (const bool, QWidget *=0, Qt::WindowFlags=0) | |
| Constructor. | |
| QtxDockWidget (QWidget *, Qt::WindowFlags=0) | |
| Constructor. | |
| virtual | ~QtxDockWidget () |
| Destructor. | |
| virtual QSize | sizeHint () const |
| Get the recommended size for the widget. | |
| virtual QSize | minimumSizeHint () const |
| Get the recommended minimum size for the widget. | |
| Qt::Orientation | orientation () const |
| Get dockable window orientation. | |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *) |
| Process resize event. | |
Private Member Functions | |
| void | updateState () |
| Update dockable window state. | |
Private Attributes | |
| Watcher * | myWatcher |
| watcher object | |
| Qt::Orientation | myOrientation |
| dockable window orientation | |
| QtxDockWidget::QtxDockWidget | ( | const QString & | title, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
| title | dockable widget title |
| parent | parent widget |
| f | widget flags |
References updateState().
| QtxDockWidget::QtxDockWidget | ( | const bool | watch, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
| watch | if true the event filter is installed to watch wigdet state changes to update it properly |
| parent | parent widget |
| f | widget flags |
References myWatcher, and updateState().
| QtxDockWidget::QtxDockWidget | ( | QWidget * | parent, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| parent | parent widget |
| f | widget flags |
| QtxDockWidget::~QtxDockWidget | ( | ) | [virtual] |
| QSize QtxDockWidget::sizeHint | ( | ) | const [virtual] |
| QSize QtxDockWidget::minimumSizeHint | ( | ) | const [virtual] |
| Qt::Orientation QtxDockWidget::orientation | ( | ) | const |
References Horizontal, and Vertical.
| QtxDockWidget::orientationChanged | ( | Qt::Orientation | o | ) | [signal] |
| o | new window orientation |
| void QtxDockWidget::setVisible | ( | bool | on | ) | [virtual, slot] |
| on | new visibility state |
References QtxDockWidget.Watcher.hidden(), QtxDockWidget.Watcher.isEmpty(), myWatcher, and QtxDockWidget.Watcher.shown().
| void QtxDockWidget::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
| e | event |
References updateState().
| void QtxDockWidget::updateState | ( | ) | [private] |
References myOrientation, orientation(), and orientationChanged().
Watcher* QtxDockWidget.myWatcher [private] |
Qt::Orientation QtxDockWidget.myOrientation [private] |