3#include <Kanoop/gui/libkanoopgui.h>
4#include <QMdiSubWindow>
27 int type()
const {
return _type; }
33 void setType(
int value) { _type = value; }
37 virtual void moveEvent(QMoveEvent* event)
override;
39 virtual void resizeEvent(QResizeEvent* event)
override;
41 virtual void showEvent(QShowEvent *event)
override;
43 virtual void closeEvent(QCloseEvent* event)
override;
45 bool _formLoadComplete =
false;
QMdiSubWindow subclass that persists geometry and emits a closing() signal.
MdiSubWindow(QWidget *parent=nullptr)
Construct with an optional parent.
void setType(int value)
Set the application-defined sub-window type integer.
void closing()
Emitted just before the sub-window closes.
int type() const
Return the application-defined sub-window type integer.
virtual void onPreferencesChanged()
Called when application preferences change; override to react.