Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kaidan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
46
Issues
46
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Network
Kaidan
Commits
1b0e6b74
Verified
Commit
1b0e6b74
authored
Nov 08, 2019
by
Melvin Keskin
Committed by
Linus Jahn
Dec 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tooltip for roster items
Signed-off-by:
Linus Jahn
<
lnj@kaidan.im
>
parent
041fdca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
src/qml/elements/RosterListItem.qml
src/qml/elements/RosterListItem.qml
+0
-31
No files found.
src/qml/elements/RosterListItem.qml
View file @
1b0e6b74
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment