소스 검색

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 년 전
부모
커밋
6cadfd4ce3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libs/Widgets/Testing/Cpp/ctkDirectoryButtonTest1.cpp

+ 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 |