summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwindow.h')
-rw-r--r--src/gui/kernel/qwindow.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h
index fefece1e9e..499582e348 100644
--- a/src/gui/kernel/qwindow.h
+++ b/src/gui/kernel/qwindow.h
@@ -60,6 +60,7 @@ QT_MODULE(Gui)
class QWindowPrivate;
class QExposeEvent;
+class QFocusEvent;
class QMoveEvent;
class QResizeEvent;
class QShowEvent;
@@ -123,12 +124,21 @@ public:
void setOpacity(qreal level);
void requestActivateWindow();
+ bool isActive() const;
+
Qt::WindowState windowState() const;
void setWindowState(Qt::WindowState state);
void setTransientParent(QWindow *parent);
QWindow *transientParent() const;
+ enum AncestorMode {
+ ExcludeTransients,
+ IncludeTransients
+ };
+
+ bool isAncestorOf(const QWindow *child, AncestorMode mode = IncludeTransients) const;
+
QSize minimumSize() const;
QSize maximumSize() const;
QSize baseSize() const;
@@ -205,6 +215,8 @@ protected:
virtual void exposeEvent(QExposeEvent *);
virtual void resizeEvent(QResizeEvent *);
virtual void moveEvent(QMoveEvent *);
+ virtual void focusInEvent(QFocusEvent *);
+ virtual void focusOutEvent(QFocusEvent *);
virtual void showEvent(QShowEvent *);
virtual void hideEvent(QHideEvent *);