Verified Commit 1b0e6b74 authored by Melvin Keskin's avatar Melvin Keskin Committed by Linus Jahn

Remove tooltip for roster items

Signed-off-by: Linus Jahn's avatarLinus Jahn <lnj@kaidan.im>
parent 041fdca9
......@@ -72,13 +72,6 @@ Kirigami.SwipeListItem {
Layout.preferredHeight: parent.height - Kirigami.Units.gridUnit * 0.8
Layout.preferredWidth: parent.height - Kirigami.Units.gridUnit * 0.8
Controls.ToolTip {
visible: hovered && !Kirigami.Settings.isMobile
delay: Qt.styleHints.mousePressAndHoldInterval
text: generateToolTipText(listItem.name, listItem.jid,
listItem.presenceType, listItem.statusMsg)
}
Avatar {
id: avatar
anchors.fill: parent
......@@ -147,30 +140,6 @@ Kirigami.SwipeListItem {
}
}
/**
* Generates a styled text telling some basic information about the contact,
* is used for a tooltip
*/
function generateToolTipText(name, jid, statusType, statusMsg) {
// header (contact name)
var string = "<h3>" + name + "</h3>"
// in small: JID (only if differs name)
if (name !== jid) {
string += "<h5><i>" + jid + "</i></h5>"
}
// presence status type
string += "<font color='" + Utils.presenceTypeToColor(statusType) + "'>"
string += Utils.presenceTypeToText(statusType)
string += "</font>"
// presence status message
if (statusMsg !== "") {
string += ": " + statusMsg
}
return string
}
function handleNotificationsMuted(mutedContact) {
counter.muted = kaidan.notificationsMuted(jid)
muteIcon.visible = kaidan.notificationsMuted(jid)
......
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