Changeset View
Changeset View
Standalone View
Standalone View
src/app/main.qml
Show All 16 Lines | |||||
17 | 17 | | |||
18 | import QtQuick 2.5 | 18 | import QtQuick 2.5 | ||
19 | import QtQuick.Layouts 1.1 | 19 | import QtQuick.Layouts 1.1 | ||
20 | import QtQuick.Controls 2.1 as QQC2 | 20 | import QtQuick.Controls 2.1 as QQC2 | ||
21 | import org.kde.kirigami 2.0 as Kirigami | 21 | import org.kde.kirigami 2.0 as Kirigami | ||
22 | import "." as App | 22 | import "." as App | ||
23 | 23 | | |||
24 | Kirigami.ApplicationWindow { | 24 | Kirigami.ApplicationWindow { | ||
25 | id: root | ||||
25 | title: i18n("KDE Itinerary") | 26 | title: i18n("KDE Itinerary") | ||
26 | reachableModeEnabled: false | | |||
27 | 27 | | |||
28 | width: 480 | 28 | width: 480 | ||
29 | height: 720 | 29 | height: 720 | ||
30 | 30 | | |||
31 | App.ImportDialog { | 31 | App.ImportDialog { | ||
32 | id: importDialog | 32 | id: importDialog | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | globalDrawer: Kirigami.GlobalDrawer { | 35 | globalDrawer: Kirigami.GlobalDrawer { | ||
36 | title: i18n("KDE Itinerary") | 36 | title: i18n("KDE Itinerary") | ||
37 | titleIcon: "map-symbolic" | 37 | titleIcon: "map-symbolic" | ||
38 | modal: !root.wideScreen | ||||
39 | handleVisible: !root.wideScreen | ||||
38 | actions: [ | 40 | actions: [ | ||
39 | Kirigami.Action { | 41 | Kirigami.Action { | ||
40 | text: i18n("Import...") | 42 | text: i18n("Import...") | ||
41 | iconName: "document-open" | 43 | iconName: "document-open" | ||
42 | onTriggered: importDialog.importReservation() | 44 | onTriggered: importDialog.importReservation() | ||
43 | }, | 45 | }, | ||
44 | Kirigami.Action { | 46 | Kirigami.Action { | ||
45 | text: i18n("Paste") | 47 | text: i18n("Paste") | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |