linphone-desktop/linphone-app/ui/modules/Common/Menus/DropDownStaticMenuEntry.qml
Julien Wadel 44b7c112b3 Multi fixes:
- Contact update propagated through timelines and more robust display name showing by using cpp.
- ContactEdit : don't use the conference URI when adding the contact to friend on secure chat room
- Conference View : Resize record, add record file notification.
- Group Chat : timed invitation (30s) where it will hide if no response. It will be shown if the participant accept later.
- Hide/Show empty chats : set defaults to avoid differences from SDK value.
- Calls actions : Dynamic width on transfer menu to show all text, set texts to uppercase.
- Timeline : Add a tooltip (right-clic) to show the last time update.
- File Messages : add search shortcut on avatar like messages, remove conflicts between right-clic menu and thumbnails increase (on hovering mouse).
- Call : hold view with a correct symbol (#10073 instead of 2 differents symbols for 2 vertical bars)
- Languages : remove '-----' artifacts in language files
2021-10-20 17:12:11 +02:00

50 lines
1.2 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
property int implicitWidth : text.implicitWidth + DropDownStaticMenuStyle.entry.leftMargin + DropDownStaticMenuStyle.entry.rightMargin + 5 // 5 = Elide width
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()
}
}