소스 검색

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;
 }