ソースを参照

Add interaction for ctkDICOMModelTest1

In order to be able to interact with the DICOM model, ctkDICOMModelTest1
now supports the -I flag.
Julien Finet 14 年 前
コミット
f09cedb19d
共有1 個のファイルを変更した4 個の追加1 個の削除を含む
  1. 4 1
      Libs/DICOM/Core/Testing/Cpp/ctkDICOMModelTest1.cpp

+ 4 - 1
Libs/DICOM/Core/Testing/Cpp/ctkDICOMModelTest1.cpp

@@ -80,6 +80,9 @@ int ctkDICOMModelTest1( int argc, char * argv [] )
   qDebug() << model.rowCount() << model.columnCount();
   qDebug() << model.index(0,0);
   viewer.show();
-  //return app.exec();
+  if (argc > 3 && QString(argv[3]) == "-I")
+    {
+    return app.exec();
+    }
   return EXIT_SUCCESS;
 }