[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-mediacenter] mediaelements/playlist: moving search, playlist item count, shuffle and clear i
From:       Sinny Kumari <ksinny () gmail ! com>
Date:       2013-11-17 13:17:43
Message-ID: E1Vi2ER-0003Lq-MO () scm ! kde ! org
[Download RAW message or body]

Git commit 2e8937dc470b77a1db6d870285f51935e415fa73 by Sinny Kumari.
Committed on 22/09/2013 at 06:19.
Pushed by sinnykumari into branch 'master'.

moving search, playlist item count, shuffle and clear in one row

M  +12   -12   mediaelements/playlist/Playlist.qml

http://commits.kde.org/plasma-mediacenter/2e8937dc470b77a1db6d870285f51935e415fa73

diff --git a/mediaelements/playlist/Playlist.qml b/mediaelements/playlist/Playlist.qml
index c152065..fd44e38 100644
--- a/mediaelements/playlist/Playlist.qml
+++ b/mediaelements/playlist/Playlist.qml
@@ -41,12 +41,21 @@ FocusScope {
                 anchors { top: parent.top; left: parent.left; right: parent.right }
                 height: 64
 
+                PlasmaComponents.TextField {
+                    id: filterText
+                    width: parent.width * 4/5
+                    height: 30
+                    anchors.verticalCenter: parent.verticalCenter
+                    clearButtonShown: true
+                    placeholderText: i18n("Search Playlist")
+                    Keys.onDownPressed: playlistList.focus = true;
+                }
                 Item {
                     height: parent.height
-                    width: parent.width - clearPlaylist.width - randomButton.width
+                    width: parent.width - filterText.width - clearPlaylist.width - randomButton.width
                     Text {
                         id: mediaCount
-                        anchors.centerIn: parent
+                        anchors.verticalCenter: parent.verticalCenter
                         text: i18np("%1 item", "%1 items", playlistList.count)
                         font.pixelSize: 18
                         color: theme.textColor
@@ -76,19 +85,10 @@ FocusScope {
                     }
                 }
             }
-            PlasmaComponents.TextField {
-                anchors { top: topRow.bottom; left: parent.left; right: parent.right }
-                id: filterText
-                width: parent.width
-                height: 30
-                clearButtonShown: true
-                placeholderText: i18n("Search Playlist")
-                Keys.onDownPressed: playlistList.focus = true;
-            }
 
             ListView {
                 id: playlistList
-                anchors { top: filterText.bottom; left: parent.left; right: parent.right }
+                anchors { top: topRow.bottom; left: parent.left; right: parent.right }
                 anchors.bottom: parent.bottom
                 anchors.margins: 5
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic