Commit 2fc048ec authored by Daniel Molkentin's avatar Daniel Molkentin Committed by Eike Ziller

WelcomeScreen: Make Show all checkbox more prominent by moving it to the left.

Change-Id: I3d163abbe58e7588eaec3698757a2a1547219967
Reviewed-on: http://codereview.qt.nokia.com/3186Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 32877328
......@@ -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")
......
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