Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
7c8ae90f
Commit
7c8ae90f
authored
Mar 06, 2022
by
Nate Graham
Browse files
Port to SearchField
parent
1d920648
Pipeline
#146223
passed with stage
in 1 minute and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applet/contents/ui/Toolbar.qml
View file @
7c8ae90f
...
...
@@ -8,6 +8,7 @@ import QtQuick 2.2
import
QtQuick
.
Layouts
1.2
import
org
.
kde
.
plasma
.
components
3.0
as
PlasmaComponents3
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
import
org
.
kde
.
plasma
.
networkmanagement
0.2
as
PlasmaNM
import
org
.
kde
.
kquickcontrolsaddons
2.0
...
...
@@ -146,16 +147,12 @@ RowLayout {
}
}
Plasma
Components3.Text
Field
{
Plasma
Extras.Search
Field
{
id
:
searchTextField
Layout.fillWidth
:
true
inputMethodHints
:
Qt
.
ImhNoPredictiveText
focus
:
!
Kirigami
.
InputMethod
.
willShowOnActive
clearButtonShown
:
true
placeholderText
:
i18nc
(
"
text field placeholder text
"
,
"
Search…
"
)
onTextChanged
:
{
appletProxyModel
.
setFilterRegExp
(
text
)
...
...
kcm/qml/main.qml
View file @
7c8ae90f
...
...
@@ -50,7 +50,7 @@ Item {
sourceModel
:
connectionModel
}
QQC2.Text
Field
{
Kirigami.Search
Field
{
id
:
searchField
anchors
{
...
...
@@ -59,8 +59,6 @@ Item {
top
:
parent
.
top
}
placeholderText
:
i18n
(
"
Search…
"
)
onTextChanged
:
{
editorProxyModel
.
setFilterRegExp
(
text
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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