summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorjaanttil <janne.anttila@digia.com>2011-10-05 09:55:56 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-03 14:25:17 (GMT)
commitaff964df58e213986cc5c18e4c2e81948345aeeb (patch)
tree3e96d465ea54edf4dd968f1f2e5784f30b2fdfcf /src/gui/dialogs
parentd0a32c943b9ce21de33ab19757cc5f2a994b41c7 (diff)
downloadQt-aff964df58e213986cc5c18e4c2e81948345aeeb.zip
Qt-aff964df58e213986cc5c18e4c2e81948345aeeb.tar.gz
Qt-aff964df58e213986cc5c18e4c2e81948345aeeb.tar.bz2
Reduces compiler warnings when compiling for WEC7
Task-number: QTBUG-22512 Change-Id: I17fd0ff83fa23ae3e17597b753819d1f6b5d8446 Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qfiledialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp
index bb0e559..239c1b8 100644
--- a/src/gui/dialogs/qfiledialog.cpp
+++ b/src/gui/dialogs/qfiledialog.cpp
@@ -910,7 +910,9 @@ Q_AUTOTEST_EXPORT QString qt_tildeExpansion(const QString &path, bool *expanded
*/
QStringList QFileDialogPrivate::typedFiles() const
{
+#ifdef Q_OS_UNIX
Q_Q(const QFileDialog);
+#endif
QStringList files;
QString editText = lineEdit()->text();
if (!editText.contains(QLatin1Char('"'))) {