aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2011-08-03 18:20:05 +0200
committerEike Ziller <eike.ziller@nokia.com>2011-08-24 13:37:49 +0200
commit2fc048ecad4dd92f7412fcfb2852ee64bbef1a70 (patch)
tree364c8f5a0c55257f4fcec25047fcc63e198e8bf0
parent32877328735ffd531ab5018b926d346722aa279b (diff)
WelcomeScreen: Make Show all checkbox more prominent by moving it to the left.
Change-Id: I3d163abbe58e7588eaec3698757a2a1547219967 Reviewed-on: http://codereview.qt.nokia.com/3186 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
-rw-r--r--share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml29
1 files changed, 15 insertions, 14 deletions
diff --git a/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml b/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml
index b033135ebc..2826c38478 100644
--- a/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml
+++ b/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml
@@ -53,37 +53,38 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottomMargin: - 8
- anchors.leftMargin: - 8
- anchors.rightMargin: scrollArea.verticalScrollBar.visible ? 0 : -8
+ anchors.leftMargin: -8
+ anchors.rightMargin: scrollArea.verticalScrollBar.visible ? 8 : -8
- LineEdit {
- id: lineEdit
- placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
- focus: true
- anchors.left: parent.left
- anchors.leftMargin:4
- anchors.verticalCenter: parent.verticalCenter
- width: Math.max(lineEditRoot.width - checkBox.width - 21 - tagFilterButton.width, 100)
- onTextChanged: examplesModel.parseSearchString(text)
- }
CheckBox {
id: checkBox
text: qsTr("Show Examples and Demos")
checked: false
+ anchors.left: parent.left
anchors.leftMargin: 6
- anchors.left: lineEdit.right
anchors.verticalCenter: lineEdit.verticalCenter
height: lineEdit.height
onCheckedChanged: examplesModel.showTutorialsOnly = !checked;
}
+ LineEdit {
+ id: lineEdit
+ placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
+ focus: true
+ anchors.left: checkBox.right
+ anchors.leftMargin: 6
+ anchors.verticalCenter: parent.verticalCenter
+ width: Math.max(lineEditRoot.width - checkBox.width - 21 - tagFilterButton.width, 100)
+ onTextChanged: examplesModel.parseSearchString(text)
+ }
+
Button {
id: tagFilterButton
property string tag
property Item browser;
onTagChanged: exampleBrowserRoot.appendTag(tag)
- anchors.left: checkBox.right
+ anchors.left: lineEdit.right
anchors.leftMargin: 6
anchors.verticalCenter: lineEdit.verticalCenter
text: qsTr("Tag List")