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

List:       kde-commits
Subject:    [pairs/new_qml2] src/qml: readability++
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2011-11-30 23:57:24
Message-ID: 20111130235724.F10E0A60BE () git ! kde ! org
[Download RAW message or body]

Git commit fb5677451c93a1480de768b12f2a904dd77f801b by Aleix Pol.
Committed on 30/11/2011 at 23:13.
Pushed by apol into branch 'new_qml2'.

readability++

M  +12   -4    src/qml/OptionsPage.qml

http://commits.kde.org/pairs/fb5677451c93a1480de768b12f2a904dd77f801b

diff --git a/src/qml/OptionsPage.qml b/src/qml/OptionsPage.qml
index f1ef96e..52a8dc9 100644
--- a/src/qml/OptionsPage.qml
+++ b/src/qml/OptionsPage.qml
@@ -53,6 +53,8 @@ Rectangle {
                 width: 400
                 id: themesView
                 height: parent.height
+                model: themesModel
+                =

                 MouseArea {
                     anchors.fill: parent
                     =

@@ -63,13 +65,19 @@ Rectangle {
                         playersModel.gameStarted();
                     }
                 }
-                model: themesModel
+                =

                 delegate: Column {
-                    Image { source: "image://theme/"+display+"/"+decoratio=
n; fillMode: Image.PreserveAspectFit; width: 100; height: 100 } =

+                    Image {
+                        source: "image://theme/"+display+"/"+decoration
+                        fillMode: Image.PreserveAspectFit
+                        width: 100
+                        height: 100
+                    }
+                    =

                     Text {
-                        width: 100                                =

+                        width: 100
                         wrapMode: Text.WordWrap
-                        font.pixelSize: 20 =

+                        font.pixelSize: 20
                         horizontalAlignment: Text.AlignHCenter
                         text: display
                     }

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

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