Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
plasma-settings
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KDE
plasma-settings
Commits
6611a0ef
Commit
6611a0ef
authored
Sep 19, 2019
by
Nicolas Fella
Committed by
Bhushan Shah
Sep 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[accounts] Move available services into page
parent
47731f7b
Pipeline
#7998
passed with stage
in 9 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
37 deletions
+48
-37
modules/accounts/package/contents/ui/Accounts.qml
modules/accounts/package/contents/ui/Accounts.qml
+1
-37
modules/accounts/package/contents/ui/AvailableServices.qml
modules/accounts/package/contents/ui/AvailableServices.qml
+47
-0
No files found.
modules/accounts/package/contents/ui/Accounts.qml
View file @
6611a0ef
...
...
@@ -62,10 +62,7 @@ ScrollViewKCM {
}
}
]
onClicked
:
{
availableServicesSheet
.
open
()
servicesModel
.
accountId
=
model
.
accountId
}
onClicked
:
kcm
.
push
(
"
AvailableServices.qml
"
,
{
accountId
:
model
.
accountId
})
}
}
...
...
@@ -111,37 +108,4 @@ ScrollViewKCM {
}
}
}
OA.AccountServiceModel
{
id
:
servicesModel
}
Kirigami.OverlaySheet
{
id
:
availableServicesSheet
parent
:
kaccountsRoot
.
parent
ColumnLayout
{
Kirigami.Heading
{
Layout.fillWidth
:
true
text
:
i18n
(
"
Available Services
"
)
}
ColumnLayout
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
spacing
:
Kirigami
.
Units
.
smallSpacing
Repeater
{
Layout.fillWidth
:
true
model
:
servicesModel
Controls.CheckDelegate
{
Layout.fillWidth
:
true
text
:
model
.
serviceName
checked
:
model
.
enabled
}
}
}
}
}
}
modules/accounts/package/contents/ui/AvailableServices.qml
0 → 100644
View file @
6611a0ef
/*
* Copyright 2019 Nicolas Fella <nicolas.fella@gmx.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.11
import
QtQuick
.
Controls
2.0
as
Controls
import
org
.
kde
.
kirigami
2.4
as
Kirigami
import
org
.
kde
.
kaccounts
1.0
import
org
.
kde
.
kcm
1.2
import
Ubuntu
.
OnlineAccounts
0.1
as
OA
ScrollViewKCM
{
title
:
i18n
(
"
Available Services
"
)
property
alias
accountId
:
servicesModel
.
accountId
ListView
{
anchors.fill
:
parent
model
:
OA.AccountServiceModel
{
id
:
servicesModel
}
delegate
:
Kirigami.AbstractListItem
{
width
:
parent
.
width
Controls.CheckBox
{
text
:
model
.
serviceName
checked
:
model
.
enabled
}
}
}
}
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