diff options
author | Shawn Rutledge <[email protected]> | 2013-09-16 11:07:35 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-17 07:35:33 +0200 |
commit | 77ee9ab37e81b4e593dec73428d584013d6e8574 (patch) | |
tree | d20998bf24dd28fed97d681df691ee219e18c9ee | |
parent | 9aec6efd1f7e0c4922253163efc2e7ea7e751f0f (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 <[email protected]>
-rw-r--r-- | src/imports/dialogs/plugin.cpp | 5 |
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") && |