summary refs log tree commit diff
path: root/src/ui/TextLabel.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-30 13:16:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-30 13:16:36 +0100
commitf44d8e916beb3e1059ba31e149de0cffbcaa02fd (patch)
tree71ef187a209d4fb4bf11bd7015d75bc0bd857d8f /src/ui/TextLabel.h
parentFix centering dialogs (diff)
downloadnheko-f44d8e916beb3e1059ba31e149de0cffbcaa02fd.tar.xz
Remove a few now unused files
Diffstat (limited to 'src/ui/TextLabel.h')
-rw-r--r--src/ui/TextLabel.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/ui/TextLabel.h b/src/ui/TextLabel.h
deleted file mode 100644
index 2c6f4aa3..00000000
--- a/src/ui/TextLabel.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// SPDX-FileCopyrightText: 2021 Nheko Contributors
-// SPDX-FileCopyrightText: 2022 Nheko Contributors
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <QSize>
-#include <QString>
-#include <QTextBrowser>
-#include <QUrl>
-
-class QMouseEvent;
-class QFocusEvent;
-class QWheelEvent;
-
-class ContextMenuFilter : public QObject
-{
-    Q_OBJECT
-
-public:
-    explicit ContextMenuFilter(QWidget *parent)
-      : QObject(parent)
-    {}
-
-signals:
-    void contextMenuIsOpening();
-
-protected:
-    bool eventFilter(QObject *obj, QEvent *event) override;
-};
-
-class TextLabel : public QTextBrowser
-{
-    Q_OBJECT
-
-public:
-    TextLabel(const QString &text, QWidget *parent = nullptr);
-    TextLabel(QWidget *parent = nullptr);
-
-    void wheelEvent(QWheelEvent *event) override;
-    void clearLinks() { link_.clear(); }
-
-protected:
-    void mousePressEvent(QMouseEvent *e) override;
-    void mouseReleaseEvent(QMouseEvent *e) override;
-    void focusOutEvent(QFocusEvent *e) override;
-
-private slots:
-    void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); }
-    void handleLinkActivation(const QUrl &link);
-
-signals:
-    void userProfileTriggered(const QString &user_id);
-    void linkActivated(const QUrl &link);
-
-private:
-    QString link_;
-    bool contextMenuRequested_ = false;
-};