Commit fbba1d54 authored by JanKusanagi's avatar JanKusanagi

Remember character picker font size

parent 709c79c6
......@@ -45,7 +45,8 @@ CharacterPicker::CharacterPicker(QWidget *parent) : QWidget(parent)
// Select the first symbol from the Emoticons block
m_charSelect->setCurrentCodePoint(0x1F600);
QFont charFont = m_charSelect->currentFont();
charFont.setPointSize(24);
charFont.setPointSize(settings.value("CharacterPicker/charPickerFontSize",
24).toInt());
m_charSelect->setCurrentFont(charFont);
connect(m_charSelect, &KCharSelect::currentCodePointChanged,
this, &CharacterPicker::onCodePointChanged);
......@@ -113,6 +114,7 @@ void CharacterPicker::closeEvent(QCloseEvent *event)
{
QSettings settings;
settings.setValue("CharacterPicker/charPickerWindowSize", this->size());
settings.setValue("CharacterPicker/charPickerFontSize", m_fontSize);
this->deleteLater();
......
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