Commit 071ed44e authored by JanKusanagi's avatar JanKusanagi

Save font size properly again

parent 509349d6
......@@ -149,10 +149,6 @@ CharacterPicker::CharacterPicker(QWidget *parent) : QWidget(parent)
this, &QWidget::close);
this->addAction(m_closeAction);
// Keep track of font size changes
m_fontSize = m_charSelect->currentFont().pointSize();
qDebug() << "CharacterPicker created";
}
......@@ -245,10 +241,14 @@ void CharacterPicker::onRecentButtonClicked()
void CharacterPicker::closeEvent(QCloseEvent *event)
{
QSettings settings;
settings.setValue("CharacterPicker/charPickerWindowSize", this->size());
settings.setValue("CharacterPicker/charPickerFontSize", m_fontSize);
settings.setValue("CharacterPicker/bigSymbols", m_makeBigCheckbox->isChecked());
settings.setValue("CharacterPicker/recentCodepoints", m_recentCodepoints);
settings.setValue("CharacterPicker/charPickerWindowSize",
this->size());
settings.setValue("CharacterPicker/charPickerFontSize",
m_charSelect->currentFont().pointSize());
settings.setValue("CharacterPicker/bigSymbols",
m_makeBigCheckbox->isChecked());
settings.setValue("CharacterPicker/recentCodepoints",
m_recentCodepoints);
this->deleteLater();
......
......@@ -67,7 +67,6 @@ private:
QCheckBox *m_makeBigCheckbox;
QList<QToolButton *> m_recentButtons;
int m_fontSize;
QVariantList m_recentCodepoints;
QAction *m_closeAction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment