浏览代码

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