print current magnification during zooming
authorChristian Pulvermacher <christian@hazel.(none)>
Sat, 23 Oct 2010 16:44:50 +0000 (18:44 +0200)
committerChristian Pulvermacher <christian@hazel.(none)>
Sat, 23 Oct 2010 16:44:50 +0000 (18:44 +0200)
debian/changelog
src/mainwindow.cpp
src/vncview.h

index 95bd9c4..7c1105d 100644 (file)
@@ -1,3 +1,9 @@
+presencevnc (0.7) unstable; urgency=low
+
+  * ...
+
+ -- Christian Pulvermacher <pulvermacher@gmx.de>  Sat, 23 Oct 2010 18:32:50 +0200
+
 presencevnc (0.6) unstable; urgency=low
 
   * Add zoom bar
index e0b4866..fe39fbc 100644 (file)
@@ -381,5 +381,9 @@ void MainWindow::setZoomLevel(int level)
                        vnc_view->visibleRegion().boundingRect().width()/2,
                        vnc_view->visibleRegion().boundingRect().height()/2);
                vnc_view->update();
+
+#ifdef Q_WS_MAEMO_5
+               QMaemo5InformationBox::information(this, tr("%1\%").arg(qRound(100*vnc_view->getZoomFactor())));
+#endif
        }
 }
index 3b1c12e..0c3a22e 100644 (file)
@@ -48,6 +48,7 @@ public:
     QSize sizeHint() const;
     QSize minimumSizeHint() const;
     bool isQuitting();
+    qreal getZoomFactor() { return m_horizontalFactor;} //assumes fixed aspect ratio
     void reloadSettings();
     bool start();
     bool supportsScaling() const;