Debian Codegraph @

src/GUI/qml/PopupChoiceItem.qml

raw
1 import QtQuick 2.4
2 import FlightGear 1.0
3
4 Text {
5 id: choiceText
6 property bool isCurrentIndex: false
7
8 signal select(var index);
9
10 height: implicitHeight + Style.margin
11 font.pixelSize: Style.baseFontPixelSize
12 color: choiceArea.containsMouse ? Style.themeColor : Style.baseTextColor
13
14 MouseArea {
15 id: choiceArea
16 width: flick.width // full width of the popup
17 height: parent.height
18 hoverEnabled: true
19 onClicked: choiceText.select(model.index)
20 }
21 } // of Text delegate