Debian Codegraph @

src/GUI/qml/BaseMenuItem.qml

raw
1 import QtQuick 2.4
2 import FlightGear 1.0
3
4 Item
5 {
6 property bool enabled: true
7
8 implicitHeight: Style.menuItemHeight
9 width: parent.width // take width from our parent menu
10
11 function minWidth() { return 0; }
12
13 function closeMenu()
14 {
15 parent.requestClose();
16 }
17
18 function menu()
19 {
20 return parent.getMenu();
21 }
22 }