From kde-commits Wed Nov 30 23:57:24 2011 From: Aleix Pol Date: Wed, 30 Nov 2011 23:57:24 +0000 To: kde-commits Subject: [pairs/new_qml2] src/qml: readability++ Message-Id: <20111130235724.F10E0A60BE () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=132269753703217 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 }