summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstandardgestures.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-08-10 14:07:33 (GMT)
committerhjk <qtc-committer@nokia.com>2009-08-10 14:11:15 (GMT)
commit0c98e05dfeccdca99bc180ccccd04b38305ad025 (patch)
treeabc30e4df232178be7cca6160b98c8a3206abc76 /src/gui/kernel/qstandardgestures.cpp
parent24aa36349b9fc0be9d9bf80b0db607588e0a54f6 (diff)
downloadQt-0c98e05dfeccdca99bc180ccccd04b38305ad025.zip
Qt-0c98e05dfeccdca99bc180ccccd04b38305ad025.tar.gz
Qt-0c98e05dfeccdca99bc180ccccd04b38305ad025.tar.bz2
Compile fix on Linux.
Reviewed-by: brad The declaration of getQApplicationPrivateInternal was only available as 'friend' on Q_WS_WIN.
Diffstat (limited to 'src/gui/kernel/qstandardgestures.cpp')
-rw-r--r--src/gui/kernel/qstandardgestures.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qstandardgestures.cpp b/src/gui/kernel/qstandardgestures.cpp
index ac03cd2..b4c3787 100644
--- a/src/gui/kernel/qstandardgestures.cpp
+++ b/src/gui/kernel/qstandardgestures.cpp
@@ -293,7 +293,7 @@ QPinchGesture::QPinchGesture(QWidget *parent)
: QGesture(*new QPinchGesturePrivate, parent)
{
if (parent) {
- QApplicationPrivate *qAppPriv = getQApplicationPrivateInternal();
+ QApplicationPrivate *qAppPriv = QApplicationPrivate::instance();
qAppPriv->widgetGestures[parent].pinch = this;
#ifdef Q_WS_WIN
qt_widget_private(parent)->winSetupGestures();
@@ -307,7 +307,7 @@ bool QPinchGesture::event(QEvent *event)
switch (event->type()) {
case QEvent::ParentAboutToChange:
if (QWidget *w = qobject_cast<QWidget*>(parent())) {
- getQApplicationPrivateInternal()->widgetGestures[w].pinch = 0;
+ QApplicationPrivate::instance()->widgetGestures[w].pinch = 0;
#ifdef Q_WS_WIN
qt_widget_private(w)->winSetupGestures();
#endif
@@ -315,7 +315,7 @@ bool QPinchGesture::event(QEvent *event)
break;
case QEvent::ParentChange:
if (QWidget *w = qobject_cast<QWidget*>(parent())) {
- getQApplicationPrivateInternal()->widgetGestures[w].pinch = this;
+ QApplicationPrivate::instance()->widgetGestures[w].pinch = this;
#ifdef Q_WS_WIN
qt_widget_private(w)->winSetupGestures();
#endif
@@ -333,7 +333,7 @@ bool QPinchGesture::eventFilter(QObject *receiver, QEvent *event)
Q_D(QPinchGesture);
if (receiver->isWidgetType() && event->type() == QEvent::NativeGesture) {
QNativeGestureEvent *ev = static_cast<QNativeGestureEvent*>(event);
- QApplicationPrivate *qAppPriv = getQApplicationPrivateInternal();
+ QApplicationPrivate *qAppPriv = QApplicationPrivate::instance();
QApplicationPrivate::WidgetStandardGesturesMap::iterator it;
it = qAppPriv->widgetGestures.find(static_cast<QWidget*>(receiver));
if (it == qAppPriv->widgetGestures.end())