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
0
Merge Requests
0
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
bbcc1bb1
Commit
bbcc1bb1
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 accounts into page
parent
6611a0ef
Pipeline
#7999
passed with stage
in 8 minutes and 40 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
35 deletions
+56
-35
modules/accounts/package/contents/ui/Accounts.qml
modules/accounts/package/contents/ui/Accounts.qml
+1
-35
modules/accounts/package/contents/ui/AvailableAccounts.qml
modules/accounts/package/contents/ui/AvailableAccounts.qml
+55
-0
No files found.
modules/accounts/package/contents/ui/Accounts.qml
View file @
bbcc1bb1
...
...
@@ -71,41 +71,7 @@ ScrollViewKCM {
Layout.alignment
:
Qt
.
AlignRight
text
:
i18n
(
"
Add new Account
"
)
icon.name
:
"
contact-new
"
onClicked
:
{
availableAccountsSheet
.
open
()
}
}
}
Component
{
id
:
jobComponent
CreateAccount
{
onFinished
:
{
availableAccountsSheet
.
close
()
}
}
}
Kirigami.OverlaySheet
{
id
:
availableAccountsSheet
parent
:
kaccountsRoot
.
parent
ListView
{
Layout.fillWidth
:
true
Layout.fillHeight
:
true
model
:
OA.ProviderModel
{}
delegate
:
Kirigami.BasicListItem
{
icon
:
model
.
iconName
label
:
model
.
displayName
Layout.fillWidth
:
true
onClicked
:
{
var
job
=
jobComponent
.
createObject
(
kaccountsRoot
,
{
"
providerName
"
:
providerId
})
job
.
start
()
}
}
onClicked
:
kcm
.
push
(
"
AvailableAccounts.qml
"
)
}
}
}
modules/accounts/package/contents/ui/AvailableAccounts.qml
0 → 100644
View file @
bbcc1bb1
/*
* 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
{
id
:
root
title
:
i18n
(
"
Add new Account
"
)
ListView
{
anchors.fill
:
parent
model
:
OA.ProviderModel
{}
delegate
:
Kirigami.BasicListItem
{
icon
:
model
.
iconName
label
:
model
.
displayName
width
:
parent
.
width
onClicked
:
{
var
job
=
jobComponent
.
createObject
(
root
,
{
"
providerName
"
:
providerId
})
job
.
start
()
}
}
}
Component
{
id
:
jobComponent
CreateAccount
{
onFinished
:
kcm
.
pop
()
}
}
}
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