mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-06 20:23:08 +00:00
feat(ui/views/App/MainWindow/MainWindow): display a tooltip on account info
This commit is contained in:
parent
cf3f2bb724
commit
c5427180ad
2 changed files with 9 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ import Utils 1.0
|
|||
ToolTip {
|
||||
id: tooltip
|
||||
|
||||
property string _edge: 'left'
|
||||
property var _edge: 'left'
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -51,6 +51,7 @@ ToolTip {
|
|||
} else if (a.y > b.y + b.height) {
|
||||
_edge = 'bottom'
|
||||
} else {
|
||||
_edge = null
|
||||
console.warn('Unable to get the tooltip arrow position.')
|
||||
}
|
||||
}
|
||||
|
|
@ -101,9 +102,9 @@ ToolTip {
|
|||
|
||||
fillMode: Image.PreserveAspectFit
|
||||
height: TooltipStyle.arrowSize
|
||||
source: Constants.imagesPath +
|
||||
'tooltip_arrow_' + _edge +
|
||||
Constants.imagesFormat
|
||||
source: _edge
|
||||
? (Constants.imagesPath + 'tooltip_arrow_' + _edge + Constants.imagesFormat)
|
||||
: ''
|
||||
visible: tooltip.visible && _edge
|
||||
width: TooltipStyle.arrowSize
|
||||
z: Constants.zMax
|
||||
|
|
|
|||
|
|
@ -115,6 +115,10 @@ ApplicationWindow {
|
|||
|
||||
account: AccountSettingsModel
|
||||
|
||||
TooltipArea {
|
||||
text: AccountSettingsModel.sipAddress
|
||||
}
|
||||
|
||||
onClicked: Utils.openWindow('ManageAccounts', window)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue