summary refs log tree commit diff
path: root/src/ui/TextLabel.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-09-17 23:06:03 +0000
committerGitHub <noreply@github.com>2021-09-17 23:06:03 +0000
commitd1c8149d07b6c4be63cec581e5a7f5108ce56058 (patch)
tree32b92340908a9374214ec7b84c1fac7ea338f56d /src/ui/TextLabel.h
parentMerge pull request #728 from Thulinma/goto (diff)
parentChange indentation to 4 spaces (diff)
downloadnheko-d1c8149d07b6c4be63cec581e5a7f5108ce56058.tar.xz
Merge pull request #729 from Nheko-Reborn/reformat
Change indentation to 4 spaces
Diffstat (limited to 'src/ui/TextLabel.h')
-rw-r--r--src/ui/TextLabel.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/ui/TextLabel.h b/src/ui/TextLabel.h

index bc095823..313ad97c 100644 --- a/src/ui/TextLabel.h +++ b/src/ui/TextLabel.h
@@ -15,45 +15,45 @@ class QWheelEvent; class ContextMenuFilter : public QObject { - Q_OBJECT + Q_OBJECT public: - explicit ContextMenuFilter(QWidget *parent) - : QObject(parent) - {} + explicit ContextMenuFilter(QWidget *parent) + : QObject(parent) + {} signals: - void contextMenuIsOpening(); + void contextMenuIsOpening(); protected: - bool eventFilter(QObject *obj, QEvent *event) override; + bool eventFilter(QObject *obj, QEvent *event) override; }; class TextLabel : public QTextBrowser { - Q_OBJECT + Q_OBJECT public: - TextLabel(const QString &text, QWidget *parent = nullptr); - TextLabel(QWidget *parent = nullptr); + TextLabel(const QString &text, QWidget *parent = nullptr); + TextLabel(QWidget *parent = nullptr); - void wheelEvent(QWheelEvent *event) override; - void clearLinks() { link_.clear(); } + 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; + 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); + 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); + void userProfileTriggered(const QString &user_id); + void linkActivated(const QUrl &link); private: - QString link_; - bool contextMenuRequested_ = false; + QString link_; + bool contextMenuRequested_ = false; };