Verified Commit 62cada9f authored by Xuetian Weng's avatar Xuetian Weng
Browse files

Fix qml error: Unknown method parameter type: KCM_RegionAndLang::SettingType

Right now click on default doesn't change anything have emit a type
error.
parent ed7b13ed
Pipeline #204860 passed with stage
in 8 minutes and 57 seconds
......@@ -55,6 +55,7 @@ KCMRegionAndLang::KCMRegionAndLang(QObject *parent, const KPluginMetaData &data,
qmlRegisterAnonymousType<SelectedLanguageModel>("kcmregionandlang", 1);
qmlRegisterType<LocaleListModel>("kcmregionandlang", 1, 0, "LocaleListModel");
qmlRegisterType<LanguageListModel>("kcmregionandlang", 1, 0, "LanguageListModel");
qRegisterMetaType<KCM_RegionAndLang::SettingType>();
qmlRegisterUncreatableMetaObject(KCM_RegionAndLang::staticMetaObject, "kcmregionandlang", 1, 0, "SettingType", "Error: SettingType is an enum");
}
......
Supports Markdown
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