feat(ui/views/App/MainWindow/MainWindow): display a tooltip on account info

This commit is contained in:
Ronan Abhamon 2017-01-09 11:43:10 +01:00
parent cf3f2bb724
commit c5427180ad
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -115,6 +115,10 @@ ApplicationWindow {
account: AccountSettingsModel
TooltipArea {
text: AccountSettingsModel.sipAddress
}
onClicked: Utils.openWindow('ManageAccounts', window)
}