Explorar o código

Use older, compatible "Qt::MidButton" rather than MiddleButton

Apparently Qt only added MiddleButton for Qt 4.7 so we use the older
style so we can compile on 4.6.
Steve Pieper %!s(int64=14) %!d(string=hai) anos
pai
achega
c7b1f27ce8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/Widgets/ctkQImageViewerWidget.cpp

+ 1 - 1
Libs/Widgets/ctkQImageViewerWidget.cpp

@@ -579,7 +579,7 @@ void ctkQImageViewerWidget::mousePressEvent( QMouseEvent * event )
         d->MouseLastIntensityWindowMax = this->intensityWindowMax();
         break;
         }
-      case Qt::MiddleButton:
+      case Qt::MidButton:
         {
         d->MouseMiddleDragging = true;
         d->MouseLastX = event->x();