[vlc-commits] qml: history.push changes view by default

Pierre Lamot git at videolan.org
Fri Feb 14 11:59:50 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Jan 28 10:27:43 2020 +0100| [2512ba6d1366e11e5b25dde961ea9e4c07eca7c2] | committer: Jean-Baptiste Kempf

qml: history.push changes view by default

   This is the behavior currently used in every calls.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2512ba6d1366e11e5b25dde961ea9e4c07eca7c2
---

 modules/gui/qt/util/navigation_history.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/util/navigation_history.hpp b/modules/gui/qt/util/navigation_history.hpp
index b19d476b14..e6800f6f05 100644
--- a/modules/gui/qt/util/navigation_history.hpp
+++ b/modules/gui/qt/util/navigation_history.hpp
@@ -47,7 +47,7 @@ public slots:
      * }, History.Go)
      * \endcode
      */
-    Q_INVOKABLE void push( QVariantMap, PostAction = PostAction::Stay );
+    Q_INVOKABLE void push( QVariantMap, PostAction = PostAction::Go );
 
     /**
      * provide a short version of the history push({k:v}), wich implicitly create a dictonnary tree from the input list
@@ -64,7 +64,7 @@ public slots:
      *  push(["foo", "bar", {baz: "plop"} ], History.Go)
      * \endcode
      */
-    Q_INVOKABLE void push(QVariantList itemList, PostAction = PostAction::Stay );
+    Q_INVOKABLE void push(QVariantList itemList, PostAction = PostAction::Go );
 
 
     /**
@@ -82,10 +82,10 @@ public slots:
     Q_INVOKABLE void update(QVariantList itemList);
 
     // Go to previous page
-    void previous( PostAction = PostAction::Stay );
+    void previous( PostAction = PostAction::Go );
 
     // Go to next page
-    void next( PostAction = PostAction::Stay );
+    void next( PostAction = PostAction::Go );
 
 private:
     QVariantList m_history;



More information about the vlc-commits mailing list