forked from qt-creator/qt-creator
Welcome: Fix up the dynamic layout fix
Change-Id: Icb068bd4522a7014a6dd48804245086a452a639d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeText {
|
Item {
|
||||||
text: qsTr("Learn how to develop your own applications and explore Qt Creator.")
|
NativeText {
|
||||||
font.pixelSize: 12
|
id: gettingStartedText
|
||||||
wrapMode: Text.WordWrap
|
anchors.fill: parent
|
||||||
Layout.maximumWidth: Screen.pixelDensity * 60
|
anchors.rightMargin: 24
|
||||||
|
text: qsTr("Learn how to develop your own applications and explore Qt Creator.")
|
||||||
|
font.pixelSize: 12
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
}
|
||||||
|
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"
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user