diff options
Diffstat (limited to 'share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml')
-rw-r--r-- | share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml b/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml index b033135ebc2..2826c384785 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") |