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

List:       kde-commits
Subject:    [kde-workspace/plasma/sreich/sal-qml] plasma/netbook/containments/sal/package/contents/ui: increase
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-29 23:12:12
Message-ID: 20120229231212.63974A60BB () git ! kde ! org
[Download RAW message or body]

Git commit bf91b1607661731d36019979f3e4eaaf58d19e4d by Shaun Reich.
Committed on 01/03/2012 at 00:11.
Pushed by sreich into branch 'plasma/sreich/sal-qml'.

increase Result item size from 64 to 128

this alsso pointed out quite a few hardcoded bugs. fixed left and right
anchor assumptions and some Repeater leftovers. now time to fix the text
again

M  +2    -2    plasma/netbook/containments/sal/package/contents/ui/Result.q=
ml
M  +10   -7    plasma/netbook/containments/sal/package/contents/ui/ResultsV=
iew.qml

http://commits.kde.org/kde-workspace/bf91b1607661731d36019979f3e4eaaf58d19e=
4d

diff --git a/plasma/netbook/containments/sal/package/contents/ui/Result.qml=
 b/plasma/netbook/containments/sal/package/contents/ui/Result.qml
index 69ed2d9..2a881df 100644
--- a/plasma/netbook/containments/sal/package/contents/ui/Result.qml
+++ b/plasma/netbook/containments/sal/package/contents/ui/Result.qml
@@ -24,14 +24,14 @@ import org.kde.qtextracomponents 0.1 as QtExtra
 Item {
     id: main
 =

-    property int iconWidth: 64
+    property int iconWidth: 128
     property alias currentText: resultLabel.text
     property alias currentIcon: resultIcon.icon;
     property string currentId;
 =

     property bool wasClicked: false
 =

-    width: iconWidth * 2
+    width: 128 //iconWidth * 2
     //FIXME also hardcoded. probably use a text metric
     height: iconWidth * 2
 =

diff --git a/plasma/netbook/containments/sal/package/contents/ui/ResultsVie=
w.qml b/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml
index ce93218..e4b134d 100644
--- a/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml
+++ b/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml
@@ -25,7 +25,8 @@ Item {
     id: main
 =

     //FIXME: figure out sizing properly..
-    property int resultItemHeight: 70
+    property int resultItemHeight: 130
+    property int resultItemWidth: 150
 =

     property alias model: gridView.model
 =

@@ -35,17 +36,21 @@ Item {
         anchors.fill: parent
         interactive: true
         clip: true
-        contentHeight: resultItemHeight * repeater.count
+        contentHeight: resultItemHeight * gridView.count
 =

 =

         GridView {
             id: gridView
             anchors {
-                fill: parent
-                leftMargin: resultItemHeight
-                rightMargin: resultItemHeight
+                top: parent.top
+                bottom: parent.bottom
+                left: parent.left
+                right: parent.right
             }
 =

+            cellWidth: resultItemWidth
+            cellHeight: resultItemHeight
+
             highlightFollowsCurrentItem: true
 =

             highlight: highlight
@@ -87,9 +92,7 @@ Item {
 =

         PlasmaComponents.Highlight {
             id: highlighter
-        //    anchors.fill: parent
             hover: true
         }
-
     }
 }
\ No newline at end of file
[prev in list] [next in list] [prev in thread] [next in thread] 

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