aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-09-16 11:07:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-17 07:35:33 +0200
commit77ee9ab37e81b4e593dec73428d584013d6e8574 (patch)
treed20998bf24dd28fed97d681df691ee219e18c9ee /src/imports
parent9aec6efd1f7e0c4922253163efc2e7ea7e751f0f (diff)
fixed warnings in dialog module when PURE_QML_ONLY is defined
There are a couple of unused parameters in that case. Change-Id: Ica81621e7d74474cbfa0b54c20501ecc72661c08 Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/dialogs/plugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/dialogs/plugin.cpp b/src/imports/dialogs/plugin.cpp
index 249152c48c..8fa87bfc0b 100644
--- a/src/imports/dialogs/plugin.cpp
+++ b/src/imports/dialogs/plugin.cpp
@@ -122,7 +122,10 @@ protected:
//qDebug() << Q_FUNC_INFO << qmlDir << qmlName << uri;
bool needQml = true;
-#ifndef PURE_QML_ONLY
+#ifdef PURE_QML_ONLY
+ Q_UNUSED(widgetsDir)
+ Q_UNUSED(hasTopLevelWindows)
+#else
// If there is a qmldir and we have a QApplication instance (as opposed to a
// widget-free QGuiApplication), assume that the widget-based dialog will work.
if (hasTopLevelWindows && widgetsDir.exists("qmldir") &&