- // FIXME remove migration at some point
- // We remove old settings if we find them, since they conflict
-#ifdef Q_WS_MAC
- QSettings mys(QCoreApplication::organizationDomain(), Quassel::buildInfo().clientApplicationName);
-#else
- QSettings mys(QCoreApplication::organizationName(), Quassel::buildInfo().clientApplicationName);
-#endif
- mys.beginGroup("QtUi");
- if(mys.childGroups().contains("Colors")) {
- qDebug() << "Removing obsolete UiStyle settings!";
- mys.endGroup();
- mys.remove("Ui");
- mys.remove("QtUiStyle");
- mys.remove("QtUiStyleNew");
- mys.remove("QtUi/Colors");
- mys.sync();
- }
-
- _defaultFont = QFont("Monospace", QApplication::font().pointSize());
-
- // Default format
- _defaultPlainFormat.setForeground(QBrush("#000000"));
- _defaultPlainFormat.setFont(_defaultFont);
- _defaultPlainFormat.font().setFixedPitch(true);
- _defaultPlainFormat.font().setStyleHint(QFont::TypeWriter);
- setFormat(None, _defaultPlainFormat, Settings::Default);
-
- // Load saved custom formats
- UiStyleSettings s(_settingsKey);
- foreach(FormatType type, s.availableFormats()) {
- _customFormats[type] = s.customFormat(type);
- }
-