Commit db5f5d56 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by Daniel Molkentin
Browse files

Re-order the feedback buttons

Change-Id: Ie10a5bc9394753aed5e13e772364d0357f577db1
Reviewed-on: http://codereview.qt.nokia.com/1587

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 0831e6e5
...@@ -48,33 +48,13 @@ Rectangle { ...@@ -48,33 +48,13 @@ Rectangle {
// whitelist // whitelist
property bool _hasDesktopTheme: welcomeMode.platform() === "linux" property bool _hasDesktopTheme: welcomeMode.platform() === "linux"
Components.Button {
id: openProjectButton
text: qsTr("Open Project...")
iconSource: _hasDesktopTheme ? "image://desktoptheme/document-open" : ""
onClicked: welcomeMode.openProject();
anchors.left: parent.left
anchors.margins: 5
anchors.verticalCenter: parent.verticalCenter
}
Components.Button {
id: createProjectButton
text: qsTr("Create Project...")
iconSource: _hasDesktopTheme ? "image://desktoptheme/document-new" : ""
onClicked: welcomeMode.newProject();
anchors.left: openProjectButton.right
anchors.margins: 5
anchors.verticalCenter: parent.verticalCenter
}
Components.Button { Components.Button {
id: feedbackButton id: feedbackButton
text: qsTr("Feedback") text: qsTr("Feedback")
iconSource: "qrc:welcome/images/feedback_arrow.png" iconSource: "qrc:welcome/images/feedback_arrow.png"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: feedbackText.left anchors.left: parent.left
anchors.margins: 5 anchors.margins: 5
onClicked: welcomeMode.sendFeedback() onClicked: welcomeMode.sendFeedback()
} }
...@@ -84,7 +64,7 @@ Rectangle { ...@@ -84,7 +64,7 @@ Rectangle {
property bool canShow: parent.width > 630 property bool canShow: parent.width > 630
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.left: feedbackButton.right
anchors.leftMargin: 10 anchors.leftMargin: 10
anchors.rightMargin: 10 anchors.rightMargin: 10
anchors.margins: 5 anchors.margins: 5
...@@ -94,4 +74,24 @@ Rectangle { ...@@ -94,4 +74,24 @@ Rectangle {
mainColor: "#444" mainColor: "#444"
text: qsTr("Help us make Qt Creator even better") text: qsTr("Help us make Qt Creator even better")
} }
Components.Button {
id: openProjectButton
text: qsTr("Open Project...")
iconSource: _hasDesktopTheme ? "image://desktoptheme/document-open" : ""
onClicked: welcomeMode.openProject();
anchors.right: createProjectButton.left
anchors.margins: 5
anchors.verticalCenter: parent.verticalCenter
}
Components.Button {
id: createProjectButton
text: qsTr("Create Project...")
iconSource: _hasDesktopTheme ? "image://desktoptheme/document-new" : ""
onClicked: welcomeMode.newProject();
anchors.right: parent.right
anchors.margins: 5
anchors.verticalCenter: parent.verticalCenter
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment