[vlmc-devel] MainWindow: Implement setScale

Yikai Lu git at videolan.org
Tue Jul 26 16:12:36 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 21:37:52 2016 +0900| [41fbb7f73575cf529b6543ab8f5ccd4f5626abc3] | committer: Yikai Lu

MainWindow: Implement setScale

> https://code.videolan.org/videolan/vlmc/commit/41fbb7f73575cf529b6543ab8f5ccd4f5626abc3
---

 src/Gui/MainWindow.cpp | 6 ++++++
 src/Gui/MainWindow.h   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 7f46fc6..6564247 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -697,6 +697,12 @@ MainWindow::zoomOut()
 }
 
 void
+MainWindow::setScale( quint32 scale )
+{
+    m_zoomSlider->setValue( scale );
+}
+
+void
 MainWindow::on_actionFullscreen_triggered( bool checked )
 {
     if ( checked && !isFullScreen() )
diff --git a/src/Gui/MainWindow.h b/src/Gui/MainWindow.h
index 93580af..f1b2a77 100644
--- a/src/Gui/MainWindow.h
+++ b/src/Gui/MainWindow.h
@@ -66,6 +66,7 @@ public:
 public slots:
     void        zoomIn();
     void        zoomOut();
+    void        setScale( quint32 scale );
 
 protected:
     virtual void    changeEvent( QEvent *e );



More information about the Vlmc-devel mailing list