7import QtQuick.Controls as QQC2
8import org.kde.kirigami as Kirigami
9import org.kde.kosmindoormap
16 property FloorLevelChangeModel model
19 signal floorLevelSelected(level: int)
21 title: root.model.title
23 width: Math.min(applicationWindow().width, Kirigami.Units.gridUnit * 10)
24 height: Math.min(applicationWindow().height, listView.contentHeight + root.header.implicitHeight + Kirigami.Units.largeSpacing)
26 contentItem: ListView {
30 keyNavigationEnabled: true
32 delegate: QQC2.ItemDelegate {
34 required property string name
35 required property int floorLevel
36 required property bool isCurrentFloor
38 width: ListView.view.width
39 contentItem: Kirigami.TitleSubtitle {
40 title: delegateRoot.name
41 font.bold: delegateRoot.isCurrentFloor
45 root.floorLevelSelected(delegateRoot.floorLevel);
47 Keys.onPressed: (
event) => {
49 event.accepted =
true;
51 root.floorLevelSelected(delegateRoot.floorLevel);
58 listView.forceActiveFocus();
59 listView.currentIndex = root.model.currentFloorLevelRow;
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.