#include <QtGui/QWindowSystemInterface>
#include <QSocketNotifier>
-#include <QApplication>
+#include <QGuiApplication>
+#include <QStyleHints>
#include <QDebug>
//#define MYX11_DEBUG
QEvent::Type type = QEvent::MouseButtonPress;
- if (e->window == prevWindow && long(e->time) - prevTime < QApplication::doubleClickInterval()
+ const int doubleClickInterval = qApp->styleHints()->mouseDoubleClickInterval();
+ if (e->window == prevWindow && long(e->time) - prevTime < doubleClickInterval
&& qAbs(e->x - prevX) < 5 && qAbs(e->y - prevY) < 5) {
type = QEvent::MouseButtonDblClick;
- prevTime = e->time - QApplication::doubleClickInterval(); //no double click next time
+ prevTime = e->time - doubleClickInterval; //no double click next time
} else {
prevTime = e->time;
}
s.flags |= USSize;
s.flags |= PSize;
s.flags |= PWinGravity;
- s.win_gravity = QApplication::isRightToLeft() ? NorthEastGravity : NorthWestGravity;
+ s.win_gravity = QGuiApplication::isRightToLeft() ? NorthEastGravity : NorthWestGravity;
XSetWMNormalHints(mScreen->display()->nativeDisplay(), x_window, &s);
}
CONFIG += qpa/genericunixfontdatabase
contains(QT_CONFIG, opengl) {
- QT += opengl
!contains(QT_CONFIG, opengles2) {
# load(qpa/glx/convenience)
HEADERS += qglxintegration.h