Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/configGeneral.qml
Show All 12 Lines | 1 | /* | |||
---|---|---|---|---|---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | Lesser General Public License for more details. | 15 | Lesser General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.5 | ||
22 | import QtQuick.Controls 1.1 as Controls | 22 | import QtQuick.Controls 2.5 as QQC2 | ||
23 | import QtQuick.Layouts 1.1 as Layouts | | |||
24 | 23 | | |||
25 | Item { | 24 | import org.kde.kirigami 2.5 as Kirigami | ||
25 | | ||||
26 | Kirigami.FormLayout { | ||||
26 | id: generalPage | 27 | id: generalPage | ||
27 | width: childrenRect.width | 28 | | ||
28 | height: childrenRect.height | 29 | anchors.left: parent.left | ||
30 | anchors.right: parent.right | ||||
29 | 31 | | |||
30 | signal configurationChanged | 32 | signal configurationChanged | ||
31 | 33 | | |||
32 | property alias cfg_unlockModemOnDetection: unlockModem.checked | 34 | property alias cfg_unlockModemOnDetection: unlockModem.checked | ||
33 | property alias cfg_manageVirtualConnections: manageVirtualConnections.checked | 35 | property alias cfg_manageVirtualConnections: manageVirtualConnections.checked | ||
34 | 36 | | |||
35 | Layouts.ColumnLayout { | 37 | QQC2.CheckBox { | ||
36 | id: mainColumn | | |||
37 | | ||||
38 | Controls.CheckBox { | | |||
39 | id: unlockModem | 38 | id: unlockModem | ||
40 | Layouts.Layout.fillWidth: true | | |||
41 | text: i18n("Ask for PIN on modem detection") | 39 | text: i18n("Ask for PIN on modem detection") | ||
42 | onClicked: { | 40 | onClicked: { | ||
43 | generalPage.configurationChanged() | 41 | generalPage.configurationChanged() | ||
44 | } | 42 | } | ||
45 | } | 43 | } | ||
46 | 44 | | |||
47 | Controls.CheckBox { | 45 | QQC2.CheckBox { | ||
48 | id: manageVirtualConnections | 46 | id: manageVirtualConnections | ||
49 | Layouts.Layout.fillWidth: true | 47 | text: i18n("Show virtual connections") | ||
50 | text: i18n("Show and configure virtual connections") | | |||
51 | onClicked: { | 48 | onClicked: { | ||
52 | generalPage.configurationChanged() | 49 | generalPage.configurationChanged() | ||
53 | } | 50 | } | ||
54 | } | 51 | } | ||
55 | } | 52 | } | ||
56 | } | |