fixed hidpi scaling for the settings window

This commit is contained in:
fourtf
2017-12-18 00:54:17 +01:00
parent 87182d078c
commit 01e9c723fa
7 changed files with 67 additions and 14 deletions
+8 -1
View File
@@ -33,8 +33,12 @@ public:
static void showDialog();
protected:
virtual void dpiMultiplyerChanged(float oldDpi, float newDpi) override;
private:
SettingsSnapshot snapshot;
std::vector<SettingsDialogTab *> tabs;
pajlada::Settings::Setting<int> usernameDisplayMode;
@@ -42,6 +46,7 @@ private:
QVBoxLayout tabs;
QVBoxLayout vbox;
QHBoxLayout hbox;
QWidget tabWidget;
QStackedLayout pageStack;
QDialogButtonBox buttonBox;
QPushButton okButton;
@@ -49,8 +54,8 @@ private:
} ui;
void addTab(QBoxLayout *layout, QString title, QString imageRes);
void addTabs();
QVBoxLayout *createAccountsTab();
QVBoxLayout *createAppearanceTab();
QVBoxLayout *createMessagesTab();
@@ -84,6 +89,8 @@ private:
void cancelButtonClicked();
std::vector<pajlada::Signals::ScopedConnection> managedConnections;
static void setChildrensFont(QLayout *object, QFont &font, int indent = 0);
};
} // namespace widgets