summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2010-04-12 11:19:20 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-04-12 11:19:20 (GMT)
commit787f713f87b365d8385af97073540c7ee565fde0 (patch)
treedf1427b94deefccbf06d2f304387b59be4477b89 /src/gui/dialogs
parentab4b6120d76a33c44fd1ce8468c926f7cfa03f92 (diff)
downloadQt-787f713f87b365d8385af97073540c7ee565fde0.zip
Qt-787f713f87b365d8385af97073540c7ee565fde0.tar.gz
Qt-787f713f87b365d8385af97073540c7ee565fde0.tar.bz2
Fix QT_NO_COMPLETER
Merge-request: 2356 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com>
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qprintdialog_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qprintdialog_unix.cpp b/src/gui/dialogs/qprintdialog_unix.cpp
index 9b4d6e8..e3c62be 100644
--- a/src/gui/dialogs/qprintdialog_unix.cpp
+++ b/src/gui/dialogs/qprintdialog_unix.cpp
@@ -703,7 +703,7 @@ QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate(QUnixPrintWidget *p)
}
#endif
-#ifndef QT_NO_FILESYSTEMMODEL
+#if !defined(QT_NO_FILESYSTEMMODEL) && !defined(QT_NO_COMPLETER)
QFileSystemModel *fsm = new QFileSystemModel(widget.filename);
fsm->setRootPath(QDir::homePath());
widget.filename->setCompleter(new QCompleter(fsm, widget.filename));