Relayout StationListView Pulldown menu
authorLuciano Montanaro <mikelima@cirulla.net>
Sat, 4 Jan 2014 15:16:17 +0000 (16:16 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Sat, 4 Jan 2014 15:16:17 +0000 (16:16 +0100)
application/resources/sailfish/qml/pages/StationListPage.qml

index b04b869..a75c314 100644 (file)
@@ -22,21 +22,18 @@ Page {
                 onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
             }
             MenuItem {
-                text: qsTr("Show Stations by Name")
-                onClicked: stationListProxyModel.sortingMode = StationListProxyModel.AlphaSorting
-                font.italic: (stationListProxyModel.sortingMode === StationListProxyModel.AlphaSorting)
-                enabled: (stationListProxyModel.sortingMode !== StationListProxyModel.AlphaSorting)
-            }
-            MenuItem {
                 text: qsTr("Show Stations by Distance")
                 onClicked: stationListProxyModel.sortingMode = StationListProxyModel.DistanceSorting
-                font.italic: (stationListProxyModel.sortingMode === StationListProxyModel.DistanceSorting)
                 enabled: (stationListProxyModel.sortingMode !== StationListProxyModel.DistanceSorting)
             }
             MenuItem {
+                text: qsTr("Show Stations by Name")
+                onClicked: stationListProxyModel.sortingMode = StationListProxyModel.AlphaSorting
+                enabled: (stationListProxyModel.sortingMode !== StationListProxyModel.AlphaSorting)
+            }
+            MenuItem {
                 text: qsTr("Show Recent Stations")
                 onClicked: stationListProxyModel.sortingMode = StationListProxyModel.RecentUsageSorting
-                font.italic: (stationListProxyModel.sortingMode === StationListProxyModel.RecentUsageSorting)
                 enabled: (stationListProxyModel.sortingMode !== StationListProxyModel.RecentUsageSorting)
             }
         }