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
P
Plasma applet for NetworkManager
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
5
Merge Requests
5
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
Plasma applet for NetworkManager
Commits
c7f37b6a
Commit
c7f37b6a
authored
Nov 28, 2017
by
Martin Kacej
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
background theme, busy indicator and forget action UI added
parent
15c583af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
mobile/package/contents/ui/RowItemDelegate.qml
mobile/package/contents/ui/RowItemDelegate.qml
+29
-2
No files found.
mobile/package/contents/ui/RowItemDelegate.qml
View file @
c7f37b6a
...
...
@@ -29,6 +29,7 @@ import org.kde.kirigami 1.0 as Kirigami
Kirigami.SwipeListItem
{
width
:
parent
.
width
enabled
:
true
backgroundColor
:
theme
.
backgroundColor
Item
{
height
:
connectionSvgIcon
.
height
...
...
@@ -49,6 +50,19 @@ Kirigami.SwipeListItem{
}
}
PlasmaComponents.BusyIndicator
{
id
:
connectingIndicator
anchors
{
left
:
parent
.
left
horizontalCenter
:
connectionSvgIcon
.
horizontalCenter
verticalCenter
:
connectionSvgIcon
.
verticalCenter
}
height
:
units
.
iconSizes
.
medium
;
width
:
height
running
:
ConnectionState
==
PlasmaNM
.
Enums
.
Activating
visible
:
running
}
PlasmaComponents.Label
{
id
:
connectionNameLabel
...
...
@@ -70,15 +84,28 @@ Kirigami.SwipeListItem{
Kirigami.Action
{
iconName
:
"
configure-small
"
onTriggered
:
{
networkDetailsViewContent
.
details
=
ConnectionDetails
if
(
ConnectionDetails
)
networkDetailsViewContent
.
details
=
ConnectionDetails
if
(
ConnectionDetails
[
1
]
!==
""
)
{
detailsDialog
.
titleText
=
ConnectionDetails
[
1
]
detailsDialog
.
titleText
=
ItemUniqueName
}
else
{
detailsDialog
.
titleText
=
i18n
(
"
Network details
"
)
}
networkDetailsViewContent
.
fillDetails
()
detailsDialog
.
open
()
}
},
Kirigami.Action
{
iconName
:
"
remove
"
onTriggered
:
{
forgetNetwork
()
}
}
]
function
connect
(){
console
.
info
(
ConnectionDetails
[
1
]
+
'
trying to connect
'
)
}
function
forgetNetwork
(){
console
.
info
(
ConnectionDetails
[
1
]
+
'
trying to forget
'
)
}
}
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