-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditor.qml
More file actions
42 lines (33 loc) · 890 Bytes
/
Editor.qml
File metadata and controls
42 lines (33 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
SPDX-FileCopyrightText: 2024 Kavinu Nethsara <kavinunethsarakoswattage@gmail.com>
SPDX-License-Identifier: LGPL-2.1-or-later
*/
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
Rectangle {
id: sidebar
z: 10
radius: Kirigami.Units.smallSpacing
Kirigami.Theme.colorSet: Kirigami.Theme.Window
Kirigami.Theme.inherit: false
color: Kirigami.Theme.backgroundColor;
property QtObject content: editor
property var currentPage
signal closeClicked
visible: false
ColumnLayout {
anchors.fill: parent
anchors.margins: Kirigami.Units.smallSpacing
Button {
text: i18n("Close")
onClicked: sidebar.closeClicked()
}
Item {
id: editor
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}