Welcome: Fix up the dynamic layout fix

Change-Id: Icb068bd4522a7014a6dd48804245086a452a639d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-06-24 18:33:17 +02:00
parent b497a34655
commit 6cfeeee117
2 changed files with 18 additions and 11 deletions

View File

@@ -53,9 +53,9 @@ ColumnLayout {
} }
Tabs { Tabs {
anchors.centerIn: parent anchors.verticalCenter: parent.verticalCenter
x: 16
id: tabs id: tabs
} }
Rectangle { Rectangle {
@@ -109,20 +109,26 @@ ColumnLayout {
font.bold: false font.bold: false
} }
Item {
NativeText { NativeText {
id: gettingStartedText
anchors.fill: parent
anchors.rightMargin: 24
text: qsTr("Learn how to develop your own applications and explore Qt Creator.") text: qsTr("Learn how to develop your own applications and explore Qt Creator.")
font.pixelSize: 12 font.pixelSize: 12
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
Layout.maximumWidth: Screen.pixelDensity * 60 }
height: gettingStartedText.implicitHeight
implicitWidth: parent.width
} }
Item { Item {
height: 8 height: 24
width: parent.width width: parent.width
} }
Item { Item {
width: gettingStartedButton.width + 24 width: gettingStartedButton.width + 28
Button { Button {
x: 4 x: 4
id: gettingStartedButton id: gettingStartedButton
@@ -137,7 +143,6 @@ ColumnLayout {
} }
ColumnLayout { ColumnLayout {
x: 14
spacing: 16 spacing: 16
IconAndLink { IconAndLink {
iconSource: "images/icons/qt_account.png" iconSource: "images/icons/qt_account.png"

View File

@@ -29,8 +29,9 @@
import QtQuick 2.1 import QtQuick 2.1
import QtQuick.Controls 1.1 as QQControls import QtQuick.Controls 1.1 as QQControls
import QtQuick.Layouts 1.1
Column { ColumnLayout {
id: customTab id: customTab
property alias model: repeater.model property alias model: repeater.model
spacing: 16 spacing: 16
@@ -48,6 +49,7 @@ Column {
id: repeater id: repeater
Button { Button {
Layout.fillWidth: true
text: title text: title
checkable: true checkable: true
exclusiveGroup: group exclusiveGroup: group