From 54c3e5912b0d64bad5a1c66bc96f0552ac5e21f5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 3 Mar 2016 17:10:18 +0100 Subject: Install a qml plugin for the maildir account This works and allows us to register other controllers and action handlers, but it's not yet clear to me whether we should rather be using kpackage for this as well (and I failed to get it to run, so, here we are...) --- .../package/contents/ui/MaildirAccountSettings.qml | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 applications/kube-mail/package/contents/ui/MaildirAccountSettings.qml (limited to 'applications/kube-mail/package/contents/ui/MaildirAccountSettings.qml') diff --git a/applications/kube-mail/package/contents/ui/MaildirAccountSettings.qml b/applications/kube-mail/package/contents/ui/MaildirAccountSettings.qml deleted file mode 100644 index 5ba9f0c1..00000000 --- a/applications/kube-mail/package/contents/ui/MaildirAccountSettings.qml +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2016 Michael Bohlender - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -import QtQuick 2.4 -import QtQuick.Controls 1.4 -import QtQuick.Layouts 1.1 - -import org.kde.kube.settings 1.0 as KubeSettings -// import org.kde.kube.accounts.maildir 1.0 as MaildirAccount - -Rectangle { - id: root - property string accountId - property string accountName - - color: colorPalette.background - - GridLayout { - id: gridLayout - columns: 2 - Layout.fillWidth: true - - Text { - Layout.columnSpan: 2 - Layout.fillWidth: true - text: "Account: " + accountName - } - - Label { text: "Username" } - TextField { - id: username - text: "username" - Layout.fillWidth: true - } - - Label { text: "Password" } - TextField { - id: password - text: "password" - Layout.fillWidth: true - } - - Label { text: "Server" } - TextField { - id: server - text: "server" - Layout.fillWidth: true - } - - //If we had a settings controller - // MaildirAccount.SmtpSettings { - // id: smtpSettings - // identifier: accountId - // property alias username: username.text - // property alias password: password.text - // property alias server: server.text - // } - - KubeSettings.Settings { - id: accountSettings - identifier: "account." + modelData - property string primaryIdentity: "current" - } - KubeSettings.Settings { - id: identitySettings - identifier: "identity.current" - property string transport: "current" - } - KubeSettings.Settings { - id: transportSettings - identifier: "transport.current" - property alias username: username.text - property alias password: password.text - property alias server: server.text - } - - Button { - id: button - text: "Save" - onClicked: { - smtpSettings.save(); - root.visible = false; - } - } - } -} -- cgit v1.2.3