Commit c5427180 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent cf3f2bb7
...@@ -10,7 +10,7 @@ import Utils 1.0 ...@@ -10,7 +10,7 @@ import Utils 1.0
ToolTip { ToolTip {
id: tooltip id: tooltip
property string _edge: 'left' property var _edge: 'left'
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -51,6 +51,7 @@ ToolTip { ...@@ -51,6 +51,7 @@ ToolTip {
} else if (a.y > b.y + b.height) { } else if (a.y > b.y + b.height) {
_edge = 'bottom' _edge = 'bottom'
} else { } else {
_edge = null
console.warn('Unable to get the tooltip arrow position.') console.warn('Unable to get the tooltip arrow position.')
} }
} }
...@@ -101,9 +102,9 @@ ToolTip { ...@@ -101,9 +102,9 @@ ToolTip {
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
height: TooltipStyle.arrowSize height: TooltipStyle.arrowSize
source: Constants.imagesPath + source: _edge
'tooltip_arrow_' + _edge + ? (Constants.imagesPath + 'tooltip_arrow_' + _edge + Constants.imagesFormat)
Constants.imagesFormat : ''
visible: tooltip.visible && _edge visible: tooltip.visible && _edge
width: TooltipStyle.arrowSize width: TooltipStyle.arrowSize
z: Constants.zMax z: Constants.zMax
......
...@@ -115,6 +115,10 @@ ApplicationWindow { ...@@ -115,6 +115,10 @@ ApplicationWindow {
account: AccountSettingsModel account: AccountSettingsModel
TooltipArea {
text: AccountSettingsModel.sipAddress
}
onClicked: Utils.openWindow('ManageAccounts', window) onClicked: Utils.openWindow('ManageAccounts', window)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment