Changeset View
Changeset View
Standalone View
Standalone View
qmlUiKirigami/ImageViewer.qml
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | left: Kirigami.Action { | |||
---|---|---|---|---|---|
60 | iconName: "view-close" | 60 | iconName: "view-close" | ||
61 | tooltip: i18n("Close Image") | 61 | tooltip: i18n("Close Image") | ||
62 | onTriggered: root.state = "closed" | 62 | onTriggered: root.state = "closed" | ||
63 | } | 63 | } | ||
64 | right: Kirigami.Action { | 64 | right: Kirigami.Action { | ||
65 | iconName: "editimage" | 65 | iconName: "editimage" | ||
66 | tooltip: i18n("Edit Image") | 66 | tooltip: i18n("Edit Image") | ||
67 | } | 67 | } | ||
68 | contextualActions: [ | ||||
69 | Kirigami.Action { | ||||
70 | text: i18n("Rotate left") | ||||
71 | }, | ||||
72 | Kirigami.Action { | ||||
73 | text: i18n("Rotate right") | ||||
74 | } | ||||
75 | ] | ||||
68 | } | 76 | } | ||
69 | 77 | | |||
70 | states: [ | 78 | states: [ | ||
71 | State { | 79 | State { | ||
72 | name: "open" | 80 | name: "open" | ||
73 | PropertyChanges { | 81 | PropertyChanges { | ||
74 | target: root | 82 | target: root | ||
75 | visible: true | 83 | visible: true | ||
Show All 9 Lines | |||||
85 | PropertyChanges { | 93 | PropertyChanges { | ||
86 | target: listView | 94 | target: listView | ||
87 | focus: true | 95 | focus: true | ||
88 | } | 96 | } | ||
89 | PropertyChanges { | 97 | PropertyChanges { | ||
90 | target: applicationWindow() | 98 | target: applicationWindow() | ||
91 | visibility: Window.Windowed | 99 | visibility: Window.Windowed | ||
92 | } | 100 | } | ||
101 | PropertyChanges { | ||||
mart: instead of doing that, you can build a different context drawer | |||||
102 | target: applicationWindow().contextDrawer | ||||
103 | actions: root.actions.contextualActions | ||||
104 | } | ||||
93 | }, | 105 | }, | ||
94 | State { | 106 | State { | ||
95 | name: "closed" | 107 | name: "closed" | ||
96 | PropertyChanges { | 108 | PropertyChanges { | ||
97 | target: root | 109 | target: root | ||
98 | opacity: 0 | 110 | opacity: 0 | ||
99 | } | 111 | } | ||
100 | PropertyChanges { | 112 | PropertyChanges { | ||
▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines |
instead of doing that, you can build a different context drawer