Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/src/qml/AppMenuButton.qml
Show All 15 Lines | |||||
16 | *********************************************************************/ | 16 | *********************************************************************/ | ||
17 | import QtQuick 2.0 | 17 | import QtQuick 2.0 | ||
18 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | 18 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | ||
19 | import org.kde.kwin.decoration 0.1 | 19 | import org.kde.kwin.decoration 0.1 | ||
20 | 20 | | |||
21 | DecorationButton { | 21 | DecorationButton { | ||
22 | id: appMenuButton | 22 | id: appMenuButton | ||
23 | buttonType: DecorationOptions.DecorationButtonApplicationMenu | 23 | buttonType: DecorationOptions.DecorationButtonApplicationMenu | ||
24 | visible: false //decoration.appMenu | 24 | visible: decoration.client.hasApplicationMenu | ||
25 | KQuickControlsAddons.QIconItem { | 25 | KQuickControlsAddons.QIconItem { | ||
26 | icon: decoration.client.icon | 26 | icon: decoration.client.icon | ||
27 | anchors.fill: parent | 27 | anchors.fill: parent | ||
28 | } | 28 | } | ||
29 | } | 29 | } |