linphone-desktop/linphone-app/ui/modules/Common/Menus/DropDownStaticMenuEntry.qml
Julien Wadel 8ecd1bc32c - Add History view to show all call logs
- Manage missing call count. Reset call notifications when: App get focus and the logs are shown, and when we click on a log
- Refactoring of MouseArea to centralize cursor shapes
- Update SDK
2020-10-07 16:32:25 +02:00

49 lines
1 KiB
QML

import QtQuick 2.7
import Common 1.0
import Common.Styles 1.0
// =============================================================================
Rectangle {
id: entry
property alias entryName: text.text
signal clicked
color: mouseArea.pressed
? DropDownStaticMenuStyle.entry.color.pressed
: (mouseArea.containsMouse
? DropDownStaticMenuStyle.entry.color.hovered
: DropDownStaticMenuStyle.entry.color.normal
)
height: parent.entryHeight
width: parent.entryWidth
Text {
id: text
anchors {
left: parent.left
leftMargin: DropDownStaticMenuStyle.entry.leftMargin
right: parent.right
rightMargin: DropDownStaticMenuStyle.entry.rightMargin
}
color: DropDownStaticMenuStyle.entry.text.color
elide: Text.ElideRight
font.pointSize: DropDownStaticMenuStyle.entry.text.pointSize
height: parent.height
verticalAlignment: Text.AlignVCenter
}
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: entry.clicked()
}
}