[vlc-commits] [Git][videolan/vlc][master] qml: fix playlist sort menu text

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Nov 13 09:44:29 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a92d924e by Prince Gupta at 2023-11-13T09:26:09+00:00
qml: fix playlist sort menu text

align playlist sort key properties

- - - - -


2 changed files:

- modules/gui/qt/menus/qml_menu_wrapper.cpp
- modules/gui/qt/playlist/playlist_controller_p.hpp


Changes:

=====================================
modules/gui/qt/menus/qml_menu_wrapper.cpp
=====================================
@@ -976,7 +976,7 @@ void PlaylistContextMenu::popup(int currentIndex, QPoint pos )
             const QVariantMap varmap = it.toMap();
 
             auto key = static_cast<PlaylistController::SortKey>(varmap.value("key").toInt());
-            QString label = varmap.value("title").toString();
+            QString label = varmap.value("text").toString();
 
             addSortAction(qtr("%1 Ascending").arg(label), key, PlaylistController::SORT_ORDER_ASC);
             addSortAction(qtr("%1 Descending").arg(label), key, PlaylistController::SORT_ORDER_DESC);


=====================================
modules/gui/qt/playlist/playlist_controller_p.hpp
=====================================
@@ -66,10 +66,10 @@ public:
 private:
     inline void fillSortKeyTitleList()
     {
-        auto filler = [this](PlaylistController::SortKey key, const QString& title) {
+        auto filler = [this](PlaylistController::SortKey key, const QString& text) {
             QVariantMap map;
             map.insert("criteria", key);
-            map.insert("title", title);
+            map.insert("text", text);
             sortKeyTitleList.push_back(map);
         };
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a92d924e42648adb787bf6c75d3323a83d113472

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a92d924e42648adb787bf6c75d3323a83d113472
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list