Show mxid on hovering username

fixes #507
pull/520/head
Nicolas Werner 4 years ago
parent d5e578d0e4
commit bb6ff8cec8
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 1
      resources/qml/Avatar.qml
  2. 1
      resources/qml/Completer.qml
  3. 1
      resources/qml/EncryptionIndicator.qml
  4. 1
      resources/qml/ImageButton.qml
  5. 1
      resources/qml/MatrixText.qml
  6. 1
      resources/qml/MessageInput.qml
  7. 16
      resources/qml/MessageView.qml
  8. 1
      resources/qml/NhekoBusyIndicator.qml
  9. 1
      resources/qml/PrivacyScreen.qml
  10. 1
      resources/qml/Reactions.qml
  11. 1
      resources/qml/ReplyPopup.qml
  12. 1
      resources/qml/RoomSettings.qml
  13. 2
      resources/qml/ScrollHelper.qml
  14. 1
      resources/qml/StatusIndicator.qml
  15. 1
      resources/qml/TimelineRow.qml
  16. 1
      resources/qml/TimelineView.qml
  17. 1
      resources/qml/ToggleButton.qml
  18. 1
      resources/qml/TopBar.qml
  19. 1
      resources/qml/TypingIndicator.qml
  20. 1
      resources/qml/UserProfile.qml
  21. 1
      resources/qml/delegates/FileMessage.qml
  22. 1
      resources/qml/delegates/ImageMessage.qml
  23. 1
      resources/qml/delegates/MessageDelegate.qml
  24. 1
      resources/qml/delegates/NoticeMessage.qml
  25. 1
      resources/qml/delegates/Pill.qml
  26. 1
      resources/qml/delegates/Placeholder.qml
  27. 1
      resources/qml/delegates/PlayableMediaMessage.qml
  28. 1
      resources/qml/delegates/Reply.qml
  29. 1
      resources/qml/delegates/TextMessage.qml
  30. 1
      resources/qml/device-verification/AwaitingVerificationConfirmation.qml
  31. 1
      resources/qml/device-verification/DeviceVerification.qml
  32. 1
      resources/qml/device-verification/DigitVerification.qml
  33. 1
      resources/qml/device-verification/EmojiElement.qml
  34. 1
      resources/qml/device-verification/EmojiVerification.qml
  35. 1
      resources/qml/device-verification/Failed.qml
  36. 1
      resources/qml/device-verification/NewVerificationRequest.qml
  37. 1
      resources/qml/device-verification/Success.qml
  38. 1
      resources/qml/device-verification/Waiting.qml
  39. 1
      resources/qml/emoji/EmojiButton.qml
  40. 1
      resources/qml/emoji/EmojiPicker.qml
  41. 1
      resources/qml/ui/Ripple.qml
  42. 1
      resources/qml/voip/ActiveCallBar.qml
  43. 1
      resources/qml/voip/CallDevices.qml
  44. 1
      resources/qml/voip/CallInvite.qml
  45. 1
      resources/qml/voip/CallInviteBar.qml
  46. 1
      resources/qml/voip/DeviceError.qml
  47. 1
      resources/qml/voip/PlaceCall.qml
  48. 1
      resources/qml/voip/ScreenShare.qml
  49. 1
      resources/qml/voip/VideoCall.qml

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./ui"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./ui"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.12

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./ui"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.5

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./voip"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./delegates"
@ -232,6 +231,13 @@ ScrollView {
displayName: modelData ? modelData.userName : ""
userid: modelData ? modelData.userId : ""
onClicked: chat.model.openUserProfile(modelData.userId)
ToolTip.visible: avatarHover.hovered
ToolTip.text: userid
HoverHandler {
id: avatarHover
}
}
Connections {
@ -247,10 +253,10 @@ ScrollView {
text: modelData ? TimelineManager.escapeEmoji(modelData.userName) : ""
color: TimelineManager.userColor(modelData ? modelData.userId : "", colors.window)
textFormat: Text.RichText
ToolTip.visible: displayNameHover.hovered
ToolTip.text: modelData ? modelData.userId : ""
TapHandler {
//cursorShape: Qt.PointingHandCursor
onSingleTapped: chat.model.openUserProfile(modelData.userId)
}
@ -259,6 +265,10 @@ ScrollView {
cursorShape: Qt.PointingHandCursor
}
HoverHandler {
id: displayNameHover
}
}
Label {

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtGraphicalEffects 1.0

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.6

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./delegates/"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import Qt.labs.platform 1.1 as Platform

@ -1,9 +1,7 @@
// Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
// Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsystems.com>
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
/*
* Shamelessly stolen from:
* https://cgit.kde.org/kube.git/tree/framework/qml/ScrollHelper.qml

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.5

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./delegates"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./delegates"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.5

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "./device-verification"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.12

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.12

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.6

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
TextMessage {

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.5

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import ".."

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtMultimedia 5.6

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.12

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import ".."

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.10

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.3

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtGraphicalEffects 1.0

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import "../"

@ -1,5 +1,4 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.9

Loading…
Cancel
Save