__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/*
* SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
* SPDX-FileCopyrightText: 2019 Rituka Patwal <ritukapatwal21@gmail.com>
* SPDX-FileCopyrightText: 2015 Martin Klapetek <mklapetek@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.2
import org.kde.kirigami 2.5 as Kirigami
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.5
Kirigami.ScrollablePage {
id: root
title: i18n("Services")
property var disabledServices: []
ListView {
model: helper.availableServices
clip: true
// Cheap copy of Kirigami.BasicListItem with CheckBox instead of Icon
delegate: Kirigami.AbstractListItem {
id: listItem
highlighted: false
onClicked: serviceCheck.toggle()
RowLayout {
CheckBox {
id: serviceCheck
Layout.alignment: Qt.AlignVCenter
checked: true
onCheckedChanged: {
if (serviceCheck.checked) {
const idx = root.disabledServices.indexOf(modelData.id);
if (idx > -1) {
root.disabledServices.splice(idx, 1);
}
} else {
root.disabledServices.push(modelData.id);
}
}
}
ColumnLayout {
spacing: 0
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
Label {
Layout.fillWidth: true
text: modelData.name
color: listItem.pressed ? listItem.activeTextColor : listItem.textColor
elide: Text.ElideRight
}
Label {
Layout.fillWidth: true
text: modelData.description
color: listItem.pressed ? listItem.activeTextColor : listItem.textColor
elide: Text.ElideRight
font: Kirigami.Theme.smallFont
opacity: 0.7
visible: text.length > 0
}
}
}
}
}
footer: ToolBar {
RowLayout {
anchors.fill: parent
Button {
text: i18n("Finish")
Layout.alignment: Qt.AlignRight
onClicked: {
helper.finish(root.disabledServices)
}
}
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Server.qml | File | 2.23 KB | 0644 |
|
| Services.qml | File | 2.65 KB | 0644 |
|
| main.qml | File | 1.12 KB | 0644 |
|