QmlDesigner: Tweak item library

Change-Id: Ia9f689c33e9590815cbd00bdf13d0d05466d37d0
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Marco Bubke
2014-07-03 13:54:48 +02:00
committed by Tim Jenssen
parent f07cb7ae3a
commit 337c1b3b69
2 changed files with 9 additions and 4 deletions

View File

@@ -61,9 +61,11 @@ Rectangle {
anchors.leftMargin: styleConstants.cellHorizontalMargin
anchors.right: parent.right
anchors.rightMargin: styleConstants.cellHorizontalMargin
anchors.bottom: parent.bottom
anchors.bottomMargin: styleConstants.cellHorizontalMargin
verticalAlignment: "AlignVCenter"
horizontalAlignment: "AlignHCenter"
verticalAlignment: Qt.AlignVCenter
horizontalAlignment: Qt.AlignHCenter
text: itemName // to be set by model
color: "#FFFFFF"
renderType: Text.NativeRendering

View File

@@ -72,11 +72,11 @@ ScrollView {
property color lighterBackgroundColor: "#5f5f5f"
property int textWidth: 55
property int textHeight: 30
property int textHeight: 26
property int cellHorizontalMargin: 5
property int cellVerticalSpacing: 3
property int cellVerticalMargin: 3
property int cellVerticalMargin: 7
// the following depend on the actual shape of the item delegate
property int cellWidth: textWidth + 2 * cellHorizontalMargin
@@ -104,6 +104,9 @@ ScrollView {
width: itemsView.viewport.width
caption: sectionName // to be set by model
visible: sectionVisible
topPadding: 2
leftPadding: 2
rightPadding: 1
Grid {
id: itemGrid