Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/kcm.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 94 | auto about = new KAboutData(QStringLiteral("kcm_kwindecoration"), | |||
---|---|---|---|---|---|
95 | i18n("Window Decorations"), | 95 | i18n("Window Decorations"), | ||
96 | QStringLiteral("1.0"), | 96 | QStringLiteral("1.0"), | ||
97 | QString(), | 97 | QString(), | ||
98 | KAboutLicense::GPL); | 98 | KAboutLicense::GPL); | ||
99 | about->addAuthor(i18n("Valerio Pilo"), | 99 | about->addAuthor(i18n("Valerio Pilo"), | ||
100 | i18n("Author"), | 100 | i18n("Author"), | ||
101 | QStringLiteral("vpilo@coldshock.net")); | 101 | QStringLiteral("vpilo@coldshock.net")); | ||
102 | setAboutData(about); | 102 | setAboutData(about); | ||
103 | 103 | #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) | |||
104 | qmlRegisterType<QAbstractListModel>(); | 104 | qmlRegisterType<QAbstractListModel>(); | ||
105 | qmlRegisterType<QSortFilterProxyModel>(); | 105 | qmlRegisterType<QSortFilterProxyModel>(); | ||
106 | 106 | #else | |||
107 | qmlRegisterAnonymousType<QAbstractListModel>("org.kde.kwin.KWinDecoration", 1); | ||||
108 | qmlRegisterAnonymousType<QSortFilterProxyModel>("org.kde.kwin.KWinDecoration", 1); | ||||
109 | #endif | ||||
107 | m_proxyThemesModel->setSourceModel(m_themesModel); | 110 | m_proxyThemesModel->setSourceModel(m_themesModel); | ||
108 | m_proxyThemesModel->setFilterCaseSensitivity(Qt::CaseInsensitive); | 111 | m_proxyThemesModel->setFilterCaseSensitivity(Qt::CaseInsensitive); | ||
109 | m_proxyThemesModel->setSortCaseSensitivity(Qt::CaseInsensitive); | 112 | m_proxyThemesModel->setSortCaseSensitivity(Qt::CaseInsensitive); | ||
110 | m_proxyThemesModel->sort(0); | 113 | m_proxyThemesModel->sort(0); | ||
111 | 114 | | |||
112 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsInserted, this, &KCMKWinDecoration::updateNeedsSave); | 115 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsInserted, this, &KCMKWinDecoration::updateNeedsSave); | ||
113 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsMoved, this, &KCMKWinDecoration::updateNeedsSave); | 116 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsMoved, this, &KCMKWinDecoration::updateNeedsSave); | ||
114 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsRemoved, this, &KCMKWinDecoration::updateNeedsSave); | 117 | connect(m_leftButtonsModel, &QAbstractItemModel::rowsRemoved, this, &KCMKWinDecoration::updateNeedsSave); | ||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |