[Uml-devel] KDE/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Fri Dec 22 11:27:28 UTC 2006


SVN commit 615703 by okellogg:

slotZoomSliderMoved(): Adapt to KPlayerPopupSliderAction::triggered().

 M  +3 -2      uml.cpp  
 M  +1 -2      uml.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/uml.cpp #615702:615703
@@ -363,7 +363,7 @@
     viewProperties->setEnabled(false);
 
     zoomAction = new KPlayerPopupSliderAction(i18n("&Zoom Slider"), "viewmag", KShortcut(Qt::Key_F9),
-                 this, SLOT(slotZoomSliderMoved(int)),
+                 this, SLOT(slotZoomSliderMoved()),
                  actionCollection(), "popup_zoom");
     zoom100Action = new KAction(actionCollection(), "zoom100");
     zoom100Action->setIcon(KIcon("viewmag1"));
@@ -413,7 +413,8 @@
 //     menu->insertItem(i18n("&Windows"), dockHideShowMenu(), -1, 0);
 }
 
-void UMLApp::slotZoomSliderMoved(int value) {
+void UMLApp::slotZoomSliderMoved() {
+    int value = zoomAction->slider()->value();
     int zoom = (int)(value*0.01);
     getCurrentView()->setZoom(zoom*zoom);
 }
--- trunk/KDE/kdesdk/umbrello/umbrello/uml.h #615702:615703
@@ -754,9 +754,8 @@
      * Connected to by the KPlayerSliderAction zoomAction, a value of between 300
      * and 2200 is scaled to zoom to between 9% and 525%.
      * The min and max values of the slider are hard coded in KPlayerSliderAction for now.
-     * @param value         Zoom factor before scaleing
      */
-    void slotZoomSliderMoved(int value);
+    void slotZoomSliderMoved();
 
     /**
      * Set zoom to 100%




More information about the umbrello-devel mailing list