A subclass of QDialog with additional features. More...
Public Member Functions | |
QtlDialog (QWidget *parent=0, Qt::WindowFlags flags=0, QtlGeometrySettingsInterface *geometrySettings=0) | |
Constructor. More... | |
QtlGeometrySettingsInterface * | geometrySettings () const |
Get the object where to save and restore the dialog geometry. More... | |
void | setGeometrySettings (QtlGeometrySettingsInterface *geometrySettings, bool restoreImmediately=false) |
Set the object where to save and restore the dialog geometry. More... | |
Protected Member Functions | |
virtual bool | event (QEvent *event) Q_DECL_OVERRIDE |
Process an event. More... | |
Private Member Functions | |
QtlDialog () Q_DECL_EQ_DELETE | |
void | restoreGeometryFromSettings () |
Last saved geometry. More... | |
void | saveGeometryToSettings () |
Save the geometry to _geometrySettings. More... | |
Private Attributes | |
int | _eventRecursion |
Where to save and restore the dialog geometry. More... | |
bool | _geometrySaved |
Recursion counter in event(). More... | |
QtlGeometrySettingsInterface * | _geometrySettings |
QRect | _lastSavedGeometry |
If true, last geometry was saved as _lastSavedGeometry. More... | |
A subclass of QDialog with additional features.
|
explicit |
Constructor.
[in] | parent | Optional parent widget. |
[in] | flags | Widget flags. |
[in] | geometrySettings | Where to save and restore the dialog geometry. |
|
private |
|
inline |
Get the object where to save and restore the dialog geometry.
void QtlDialog::setGeometrySettings | ( | QtlGeometrySettingsInterface * | geometrySettings, |
bool | restoreImmediately = false |
||
) |
Set the object where to save and restore the dialog geometry.
[in] | geometrySettings | The object where to save and restore the dialog geometry. Can be null. |
[in] | restoreImmediately | If true and geometrySettings is not null, immediately restore the geometry. |
|
protectedvirtual |
Process an event.
Reimplemented from QObject and QWidget.
[in,out] | event | The event to process. |
|
private |
Last saved geometry.
Restore the geometry from _geometrySettings.
|
private |
Save the geometry to _geometrySettings.
|
private |
|
private |
Where to save and restore the dialog geometry.
|
private |
Recursion counter in event().
|
private |
If true, last geometry was saved as _lastSavedGeometry.