summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_lite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qapplication_lite.cpp')
-rw-r--r--src/gui/kernel/qapplication_lite.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/kernel/qapplication_lite.cpp b/src/gui/kernel/qapplication_lite.cpp
index 2b94102..792b28b 100644
--- a/src/gui/kernel/qapplication_lite.cpp
+++ b/src/gui/kernel/qapplication_lite.cpp
@@ -86,8 +86,6 @@ static int mousePressX;
static int mousePressY;
static int mouse_double_click_distance = 5;
-bool QApplicationPrivate::qapp_constructed = false; // QApplication::QApplication completed?
-
void QApplicationPrivate::processUserEvent(QWindowSystemInterface::UserEvent *e)
{
switch(e->type) {
@@ -833,7 +831,7 @@ void QApplicationPrivate::processTouchEvent(QWindowSystemInterface::TouchEvent *
void QApplicationPrivate::reportScreenCount(int count)
{
// This operation only makes sense after the QApplication constructor runs
- if (!QApplicationPrivate::qapp_constructed)
+ if (QCoreApplication::startingUp())
return;
// signal anything listening for creation or deletion of screens
@@ -844,7 +842,7 @@ void QApplicationPrivate::reportScreenCount(int count)
void QApplicationPrivate::reportGeometryChange(int screenIndex)
{
// This operation only makes sense after the QApplication constructor runs
- if (!QApplicationPrivate::qapp_constructed)
+ if (QCoreApplication::startingUp())
return;
// signal anything listening for screen geometry changes
@@ -865,7 +863,7 @@ void QApplicationPrivate::reportGeometryChange(int screenIndex)
void QApplicationPrivate::reportAvailableGeometryChange(int screenIndex)
{
// This operation only makes sense after the QApplication constructor runs
- if (!QApplicationPrivate::qapp_constructed)
+ if (QCoreApplication::startingUp())
return;
// signal anything listening for screen geometry changes