diff --git a/src/apps/qml/ConfigureServerList.qml b/src/apps/qml/ConfigureServerList.qml index 4f18bf59..06edf534 100644 --- a/src/apps/qml/ConfigureServerList.qml +++ b/src/apps/qml/ConfigureServerList.qml @@ -1,115 +1,126 @@ /* Copyright (c) 2017-2019 Montel Laurent This library 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 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library 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 library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.9 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.5 as QQC2 import org.kde.kirigami 2.7 as Kirigami import KDE.Ruqola.RocketChatAccount 1.0 Kirigami.Page { id: configureServer anchors.fill: parent //implicitHeight: 400 //implicitWidth: 300 property QtObject accountModel signal closeConfigureServer() ColumnLayout { anchors.fill: parent ListView { id: listview Layout.fillWidth: true Layout.fillHeight: true clip: true model: accountModel delegate: Kirigami.BasicListItem { reserveSpaceForIcon: false RowLayout { QQC2.Label { text: name } Kirigami.Icon { //Fix icon ?? source: "list-remove" height: Kirigami.Units.iconSizes.medium width: height MouseArea { anchors.fill: parent onClicked: { deleteAccountDialog.accountName = name deleteAccountDialog.open() } } } + Kirigami.Icon { + //Fix icon ?? + source: "document-edit" + height: Kirigami.Units.iconSizes.medium + width: height + MouseArea { + anchors.fill: parent + onClicked: { + } + } + } Item { Layout.fillWidth: true } } } } RowLayout { Kirigami.Icon { //Fix icon ?? source: "list-add" height: Kirigami.Units.iconSizes.medium width: height MouseArea { anchors.fill: parent onClicked: { createNewAccountDialog.initializeAndOpen() } } } QQC2.Label { text: i18n("Add Account"); MouseArea { anchors.fill: parent onClicked: { createNewAccountDialog.initializeAndOpen() } } } } QQC2.Button { text: i18n("Close") onClicked: { configureServer.closeConfigureServer() } } } CreateNewAccountDialog { id: createNewAccountDialog onCreateNewAccount: { appid.accountManager.addAccount(accountName, username, serverUrl); } } DeleteAccountDialog { id: deleteAccountDialog onAccepted: { appid.accountManager.removeAccount(accountName) } } }