1
/******************************************************************************
2
* Copyright (C) 2012 by Savoir-Faire Linux *
3
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
5
* This library is free software; you can redistribute it and/or *
6
* modify it under the terms of the GNU Lesser General Public *
7
* License as published by the Free Software Foundation; either *
8
* version 2.1 of the License, or (at your option) any later version. *
10
* This library is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13
* Lesser General Public License for more details. *
15
* You should have received a copy of the Lesser GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
*****************************************************************************/
19
import org.kde.plasma.components 0.1 as Plasma
20
import org.kde.plasma.core 0.1 as PlasmaCore
25
property string defaultaccount: "IP2IP"
31
bottom: parent.bottom;
35
source: "plasmapackage:/images/configure.svgz";
37
fillMode: Image.PreserveAspectFit
38
height:parent.height-50
39
sourceSize.width: parent.width
40
sourceSize.height: parent.width
43
PlasmaCore.DataSource {
47
connectedSources: ["accounts"]
53
PlasmaCore.DataSource {
57
connectedSources: ["info"]
60
defaultaccount = infoSource.data["info"]["Current_account"]
64
PlasmaCore.SortFilterModel {
68
sortOrder: "AscendingOrder"
69
sourceModel: PlasmaCore.DataModel {
70
dataSource: accountSource
71
keyRoleFilter: "[\\d]*"
80
text: "Default account"
85
width:parent.width -30
87
anchors.bottomMargin:10
97
if (checkbox2.checked == false && defaultaccount != id) {
100
if (defaultaccount == id) {
101
checkbox2.checked = true
108
when: (id==defaultaccount)
109
PropertyChanges {target: checkbox2;checked:true}
113
when: (id!=defaultaccount)
114
PropertyChanges {target: checkbox2;checked:false}
123
anchors.bottomMargin:10
132
width:parent.width -30
133
color:theme.textColor
134
anchors.bottomMargin:10
138
text:"Show popular as bookmark"
145
anchors.bottomMargin:10
154
width:parent.width -30
155
color:theme.textColor
156
anchors.bottomMargin:10
162
anchors.bottomMargin:10
166
text:"Configure sflphone"