OSDN Git Service

WelcomePage: polish RecentProjects and RecentSessions
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Sep 2011 13:28:48 +0000 (15:28 +0200)
committerEike Ziller <eike.ziller@nokia.com>
Wed, 28 Sep 2011 13:45:28 +0000 (15:45 +0200)
Change-Id: If78338c6a7b2bc534ccdf7065d361fcebba710ea
Reviewed-on: http://codereview.qt-project.org/5724
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
share/qtcreator/welcomescreen/widgets/RecentProjects.qml
share/qtcreator/welcomescreen/widgets/RecentSessions.qml

index a89f7d6..9f9126c 100644 (file)
@@ -36,12 +36,21 @@ import qtcomponents 1.0 as Components
 HeaderItemView {
     header: qsTr("Recently Edited Projects")
     model: projectList
-    delegate: Rectangle {
+    delegate: Item {
         Components.QStyleItem { id: styleItem; cursor: "pointinghandcursor"; anchors.fill: parent }
-        height: 60
+        height: 40
         width: dataSection.width
 
-        color: mousearea.containsMouse ? "#f9f9f9" : "white"
+
+        Rectangle {
+            anchors.top: parent.top
+            anchors.bottom: parent.bottom
+            anchors.margins: 2
+            anchors.left: parent.left
+            anchors.right: parent.right
+            anchors.rightMargin: 12
+            color: mousearea.containsMouse ? "#f9f9f9" : "white"
+        }
 
         Image {
             id: arrowImage;
index da34f39..73bb082 100644 (file)
@@ -38,7 +38,7 @@ HeaderItemView {
     model: sessionList
 
     delegate: Rectangle {
-        height: 60
+        height: 28
         width: dataSection.width
 
         color: mousearea.containsMouse ? "#f9f9f9" : "white"
@@ -62,6 +62,7 @@ HeaderItemView {
         }
 
         Text {
+            font.bold: true
             id: fileNameText
             text: parent.fullSessionName()
             elide: Text.ElideMiddle