summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-22 00:31:19 +0200
committerGitHub <noreply@github.com>2020-10-22 00:31:19 +0200
commitb9f2caa238836be467fc7cf81046bcb796f9853b (patch)
tree063f3398192a8a082853d47501193f0fe8037f07 /src/UserSettingsPage.cpp
parentMerge pull request #305 from Nheko-Reborn/encrypted_device_messages (diff)
parentUse QFontComboBox as per issue 238 (deleted comments) (diff)
downloadnheko-b9f2caa238836be467fc7cf81046bcb796f9853b.tar.xz
Merge pull request #303 from LorenDB/master
Change the font box to QFontComboBox as per issue 238
Diffstat (limited to 'src/UserSettingsPage.cpp')
-rw-r--r--src/UserSettingsPage.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp

index 8f049a29..4278180b 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp
@@ -18,6 +18,7 @@ #include <QApplication> #include <QComboBox> #include <QFileDialog> +#include <QFontComboBox> #include <QFormLayout> #include <QInputDialog> #include <QLabel> @@ -470,7 +471,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge useStunServer_ = new Toggle{this}; scaleFactorCombo_ = new QComboBox{this}; fontSizeCombo_ = new QComboBox{this}; - fontSelectionCombo_ = new QComboBox{this}; + fontSelectionCombo_ = new QFontComboBox{this}; emojiFontSelectionCombo_ = new QComboBox{this}; timelineMaxWidthSpin_ = new QSpinBox{this}; @@ -490,10 +491,6 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge fontSizeCombo_->addItem(QString("%1 ").arg(QString::number(option))); QFontDatabase fontDb; - auto fontFamilies = fontDb.families(); - for (const auto &family : fontFamilies) { - fontSelectionCombo_->addItem(family); - } // TODO: Is there a way to limit to just emojis, rather than // all emoji fonts?