forked from qt-creator/qt-creator
QmlDesigner: Update look of empty pane
* Remove section * Center the hint label vertical and horizontal Change-Id: Ia52f7af9c0d6f2fa8099efbf9dd80ff94a5f29aa Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
65055989f9
commit
3bf5be3c46
@@ -24,8 +24,11 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
|
import QtQuick.Controls 2.15 as Controls
|
||||||
|
import QtQuick.Layouts 1.15
|
||||||
import HelperWidgets 2.0
|
import HelperWidgets 2.0
|
||||||
import QtQuickDesignerTheme 1.0
|
import QtQuickDesignerTheme 1.0
|
||||||
|
import StudioTheme 1.0 as StudioTheme
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: itemPane
|
id: itemPane
|
||||||
@@ -33,18 +36,22 @@ Rectangle {
|
|||||||
height: 400
|
height: 400
|
||||||
color: Theme.qmlDesignerBackgroundColorDarkAlternate()
|
color: Theme.qmlDesignerBackgroundColorDarkAlternate()
|
||||||
|
|
||||||
Section {
|
ColumnLayout {
|
||||||
y: -1
|
id: mainColumn
|
||||||
anchors.left: parent.left
|
anchors.fill: parent
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
SectionLayout {
|
Controls.Label {
|
||||||
|
text: qsTr("Select an Item in the Form Editor, Navigator or Text Edit View to see its properties.")
|
||||||
|
font.pixelSize: StudioTheme.Values.myFontSize * 1.5
|
||||||
|
color: StudioTheme.Values.themeTextColor
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
Label {
|
verticalAlignment: Text.AlignVCenter
|
||||||
id: test
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: qsTr("None or multiple components selected.")
|
Layout.fillHeight: true
|
||||||
anchors.fill: parent // TODO
|
Layout.fillWidth: true
|
||||||
}
|
Layout.alignment: Qt.AlignCenter
|
||||||
|
Layout.margins: 20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user