kwin/kcmkwin/kwinrules
Ismael Asensio a158d3cbd3 Rules kcm: Use new property ComboBox.currentValue
Summary:
Use the properties `valueRole` and `currentValue`, introduced in Qt5.14 for `QQC2.ComboBox`

This didn't work before due to QQC2 version being mis-detected at build time, so the code mocked an internal `currentValue` property.

After D28859, it is now required to fix:
   "file:///home/nate/kde/usr/share/kpackage/kcms/kcm_kwinrules/contents/ui/RulesEditor.qml"
   "Error loading QML file.\n42: Type RuleItemDelegate unavailable\n68: Type OptionsComboBox unavailable\n35: Cannot override FINAL property\n"
   QCoreApplication::postEvent: Unexpected null receiver

Test Plan:
Try to edit a rule or add a new one.
The rule editor page shows.

Reviewers: ngraham, #kwin, zzag

Reviewed By: ngraham, #kwin, zzag

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D29145
2020-04-24 15:09:51 +02:00
..
package Rules kcm: Use new property ComboBox.currentValue 2020-04-24 15:09:51 +02:00
CMakeLists.txt KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
kcm_kwinrules.desktop KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
kcmrules.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
kcmrules.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
kwinsrc.cpp Reduce the amount of objects that are compiled several times 2020-04-02 00:41:55 +02:00
main.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
Messages.sh
optionsmodel.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
optionsmodel.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulebookmodel.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulebookmodel.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
ruleitem.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
ruleitem.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulesdialog.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulesdialog.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulesmodel.cpp KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00
rulesmodel.h KWinRules KCM Redesign 2020-04-22 21:34:48 +02:00