Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/fonts.cpp
Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Line(s) | |||||
432 | 432 | | |||
433 | /**** KFonts ****/ | 433 | /**** KFonts ****/ | ||
434 | 434 | | |||
435 | KFonts::KFonts(QObject *parent, const QVariantList &args) | 435 | KFonts::KFonts(QObject *parent, const QVariantList &args) | ||
436 | : KQuickAddons::ConfigModule(parent, args) | 436 | : KQuickAddons::ConfigModule(parent, args) | ||
437 | , m_fontAASettings(new FontAASettings(this)) | 437 | , m_fontAASettings(new FontAASettings(this)) | ||
438 | { | 438 | { | ||
439 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | 439 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | ||
440 | KAboutData* about = new KAboutData("kcm_fonts", i18n("Configure the system fonts"), | 440 | KAboutData* about = new KAboutData("kcm_fonts", i18n("Font Configuration"), | ||
441 | "0.1", QString(), KAboutLicense::LGPL); | 441 | "0.1", QString(), KAboutLicense::LGPL); | ||
442 | about->addAuthor(i18n("Antonis Tsiapaliokas"), QString(), "antonis.tsiapaliokas@kde.org"); | 442 | about->addAuthor(i18n("Antonis Tsiapaliokas"), QString(), "antonis.tsiapaliokas@kde.org"); | ||
443 | setAboutData(about); | 443 | setAboutData(about); | ||
444 | qmlRegisterType<QStandardItemModel>(); | 444 | qmlRegisterType<QStandardItemModel>(); | ||
445 | setButtons(Apply | Default | Help); | 445 | setButtons(Apply | Default | Help); | ||
446 | 446 | | |||
447 | auto updateState = [this]() { | 447 | auto updateState = [this]() { | ||
448 | setNeedsSave(m_fontAASettings->needsSave()); | 448 | setNeedsSave(m_fontAASettings->needsSave()); | ||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |