From ae015ca3d91d7bc2c3fb692c16d3b98ea9ecd819 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 27 Nov 2012 00:39:18 +0100 Subject: [PATCH] binding loop warnings-- --- data/qml/StationCreator.qml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/data/qml/StationCreator.qml b/data/qml/StationCreator.qml index 52ae3238f..81b913689 100644 --- a/data/qml/StationCreator.qml +++ b/data/qml/StationCreator.qml @@ -4,12 +4,16 @@ import "tomahawkimports" Item { id: stationCreator + + property int spacing: width * .05 + Flickable { id: flickArea + width: parent.width - stationCreator.spacing anchors.fill: parent - contentHeight: mainGrid.height + anchors.margins: stationCreator.spacing + contentHeight: stationCreator.height contentWidth: width - anchors.margins: mainGrid.spacing clip: true interactive: false @@ -28,7 +32,7 @@ Item { Grid { id: mainGrid width: parent.width - spacing: width * .05 + spacing: stationCreator.spacing columns: 2 height: rowHeight * 3 + spacing * 2 @@ -116,9 +120,8 @@ Item { TagCloud { anchors.fill: parent - anchors.topMargin: selectGenreText.height * 2 + model: styleModel//generator.styles() - opacity: echonestStation.configured ? 0 : 1 onTagClicked: { rootView.startStationFromGenre(item) @@ -238,8 +241,7 @@ Item { RoundedButton { anchors { top: parent.top - right: parent.right - rightMargin: width / 3 + horizontalCenter: parent.horizontalCenter } height: orText.height * 3 width: height * 3 @@ -253,8 +255,7 @@ Item { RoundedButton { anchors { bottom: parent.bottom - right: parent.right - rightMargin: width / 3 + horizontalCenter: parent.horizontalCenter } height: orText.height * 3 width: height * 3