summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.h
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-07-30 22:13:58 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-07-31 12:11:15 -0400
commitdab1c9068ac6d48a1faba54d7510deb360ae74e3 (patch)
treed0200f0da0323fbeaa19dcfb5501aefa30eeeb74 /src/ui/NhekoGlobalObject.h
parentFix C&P error for DeviceType (diff)
downloadnheko-dab1c9068ac6d48a1faba54d7510deb360ae74e3.tar.xz
QML the raw message dialog
Diffstat (limited to 'src/ui/NhekoGlobalObject.h')
-rw-r--r--src/ui/NhekoGlobalObject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h

index 14135fd1..cfe982c5 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -4,6 +4,7 @@ #pragma once +#include <QFontDatabase> #include <QObject> #include <QPalette> @@ -38,6 +39,10 @@ public: int paddingLarge() const { return 20; } UserProfile *currentUser() const; + Q_INVOKABLE QFont monospaceFont() const + { + return QFontDatabase::systemFont(QFontDatabase::FixedFont); + } Q_INVOKABLE void openLink(QString link) const; Q_INVOKABLE void setStatusMessage(QString msg) const; Q_INVOKABLE void showUserSettingsPage() const;