@@ -3501,6 +3501,7 @@ void milxQtImage::scaleDisplay(const bool forceDisplay)
35013501 Render ();
35023502}
35033503
3504+ #if VTK_MAJOR_VERSION > 5
35043505void milxQtImage::resliceMode (const bool quietly)
35053506{
35063507 if (resliceAct->isChecked ())
@@ -3511,6 +3512,7 @@ void milxQtImage::resliceMode(const bool quietly)
35113512 if (!quietly)
35123513 emit modified (this );
35133514}
3515+ #endif
35143516
35153517void milxQtImage::showCrosshair (const bool quietly)
35163518{
@@ -4087,6 +4089,9 @@ void milxQtImage::createActions()
40874089 resliceAct->setShortcut (tr (" Shift+Ctrl+s" ));
40884090 resliceAct->setCheckable (true );
40894091 resliceAct->setChecked (false );
4092+ #if VTK_MAJOR_VERSION <= 5
4093+ resliceAct->setDisabled (true );
4094+ #endif
40904095 cursorAct = new QAction (this );
40914096 cursorAct->setText (QApplication::translate (" Image" , " Show Cursor" , 0 , QApplication::UnicodeUTF8));
40924097 cursorAct->setShortcut (tr (" Shift+Alt+c" ));
@@ -4172,7 +4177,9 @@ void milxQtImage::createConnections()
41724177 connect (infoAct, SIGNAL (triggered ()), this , SLOT (imageInformation ()));
41734178 connect (interpolateAct, SIGNAL (triggered ()), this , SLOT (interpolateDisplay ()));
41744179 connect (orientAct, SIGNAL (triggered ()), this , SLOT (applyOrientDisplay ()));
4180+ #if VTK_MAJOR_VERSION > 5
41754181 connect (resliceAct, SIGNAL (triggered ()), this , SLOT (resliceMode ()));
4182+ #endif
41764183 connect (cursorAct, SIGNAL (triggered ()), this , SLOT (showCrosshair ()));
41774184 connect (milxQtRenderWindow::refreshAct, SIGNAL (triggered ()), this , SLOT (refresh ()));
41784185 connect (milxQtRenderWindow::resetAct, SIGNAL (triggered ()), this , SLOT (reset ()));
0 commit comments