Changeset View
Changeset View
Standalone View
Standalone View
src/qml/MediaPlayListView.qml
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 129 | LabelWithToolTip { | |||
---|---|---|---|---|---|
132 | text: i18np("1 track", "%1 tracks", (elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount : 0)) | 132 | text: i18np("1 track", "%1 tracks", (elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount : 0)) | ||
133 | visible: elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount > 0 : false | 133 | visible: elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount > 0 : false | ||
134 | color: myPalette.text | 134 | color: myPalette.text | ||
135 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | 135 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | ||
136 | } | 136 | } | ||
137 | 137 | | |||
138 | Item { Layout.fillWidth: true } | 138 | Item { Layout.fillWidth: true } | ||
139 | 139 | | |||
140 | Controls1.ToolButton { action: showCurrentTrack } | 140 | Controls1.ToolButton { | ||
141 | Controls1.ToolButton { action: savePlaylist } | 141 | action: showCurrentTrack | ||
142 | Controls1.ToolButton { action: loadPlaylist } | 142 | Keys.onReturnPressed: action.trigger() | ||
143 | Controls1.ToolButton { action: clearPlayList } | 143 | } | ||
144 | | ||||
145 | Controls1.ToolButton { | ||||
146 | action: savePlaylist | ||||
147 | Keys.onReturnPressed: action.trigger() | ||||
148 | } | ||||
149 | | ||||
150 | Controls1.ToolButton { | ||||
151 | action: loadPlaylist | ||||
152 | Keys.onReturnPressed: action.trigger() | ||||
153 | } | ||||
154 | | ||||
155 | Controls1.ToolButton { | ||||
156 | action: clearPlayList | ||||
157 | Keys.onReturnPressed: action.trigger() | ||||
158 | } | ||||
144 | } | 159 | } | ||
145 | 160 | | |||
146 | ColumnLayout { | 161 | ColumnLayout { | ||
147 | id: emptyPlaylistText | 162 | id: emptyPlaylistText | ||
148 | spacing: 0 | 163 | spacing: 0 | ||
149 | visible: elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount === 0 : true | 164 | visible: elisa.mediaPlayList ? elisa.mediaPlayList.tracksCount === 0 : true | ||
150 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | 165 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | ||
151 | Layout.fillHeight: true | 166 | Layout.fillHeight: true | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |