Ver código fonte

Don't use QFileDialog::Options with Qt 4.7.0

in order to have the same code compatible Qt 4.7.0 and under
Julien Finet 14 anos atrás
pai
commit
6cadfd4ce3

+ 1 - 1
Libs/Widgets/Testing/Cpp/ctkDirectoryButtonTest1.cpp

@@ -35,7 +35,7 @@ int ctkDirectoryButtonTest1(int argc, char * argv [] )
   QApplication app(argc, argv);
 
   ctkDirectoryButton ctkObject;
-#if QT_VERSION >= 0x040700
+#ifdef USE_QFILEDIALOG_OPTIONS
   ctkObject.setOptions(QFileDialog::ShowDirsOnly | QFileDialog::ReadOnly);
 #else
   ctkObject.setOptions(ctkDirectoryButton::ShowDirsOnly |