16 #include <QFontDatabase>
17 #include <QIntValidator>
18 #include <QNonConstOverload>
20 #include "../../util/btconnect.h"
25 , m_validator(new QIntValidator(1, 99, this))
29 completer()->setCompletionMode(QCompleter::PopupCompletion);
31 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
32 for (
int const size : QFontDatabase().standardSizes()) {
34 for (
int const size : QFontDatabase::standardSizes()) {
38 addItem(QString::number(size), QVariant(size));
41 BT_CONNECT(
this, qOverload<QString const &>(&QComboBox::currentTextChanged),
42 [
this](QString
const & text)
49 setCurrentText(QString::number(size));
53 return currentText().toInt();