Explorar o código

Add interaction for ctkDICOMModelTest1

In order to be able to interact with the DICOM model, ctkDICOMModelTest1
now supports the -I flag.
Julien Finet %!s(int64=14) %!d(string=hai) anos
pai
achega
f09cedb19d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;
 }