[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: fix a bun
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-29 23:41:30
Message-ID: 20120229234130.87416A60A9 () git ! kde ! org
[Download RAW message or body]

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

fix a bunch of anchor/sizing errors

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

http://commits.kde.org/kde-workspace/3cdd807ad14cfb34f7f4567039cb46eb12316e=
a6

diff --git a/plasma/netbook/containments/sal/package/contents/ui/Result.qml=
 b/plasma/netbook/containments/sal/package/contents/ui/Result.qml
index 2a881df..f57f8cc 100644
--- a/plasma/netbook/containments/sal/package/contents/ui/Result.qml
+++ b/plasma/netbook/containments/sal/package/contents/ui/Result.qml
@@ -31,9 +31,9 @@ Item {
 =

     property bool wasClicked: false
 =

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

     Column {
         anchors.centerIn: parent
@@ -57,7 +57,7 @@ Item {
                 horizontalCenter: parent.horizontalCenter
             }
 =

-            width: iconWidth + (iconWidth / 2)
+            width: iconWidth //+ (iconWidth / 2)
 =

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

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

     property alias model: gridView.model
 =

@@ -38,7 +38,6 @@ Item {
         clip: true
         contentHeight: resultItemHeight * gridView.count
 =

-
         GridView {
             id: gridView
             anchors {

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

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