Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
dedc5711
Commit
dedc5711
authored
Dec 27, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include a clear icon in the search field
parent
db212c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
discover/qml/SearchField.qml
discover/qml/SearchField.qml
+16
-0
No files found.
discover/qml/SearchField.qml
View file @
dedc5711
...
...
@@ -19,10 +19,12 @@
***************************************************************************/
import
QtQuick
2.5
import
QtQuick
.
Controls
1.1
as
QQC1
import
QtQuick
.
Controls
2.1
TextField
{
id
:
searchField
property
QtObject
page
property
string
currentSearchText
...
...
@@ -39,6 +41,20 @@ TextField
Component.onCompleted
:
forceActiveFocus
()
QQC1.ToolButton
{
anchors
{
top
:
parent
.
top
right
:
parent
.
right
bottom
:
parent
.
bottom
margins
:
Kirigami
.
Units
.
smallSpacing
}
iconName
:
"
edit-clear
"
onClicked
:
{
searchField
.
text
=
""
searchField
.
accepted
()
}
}
Connections
{
ignoreUnknownSignals
:
true
target
:
page
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment