🔧 Use consistent class names

This commit is contained in:
Simon Schneegans
2022-06-09 10:46:45 +02:00
parent 03a6d9263a
commit bbd7d6ea64
3 changed files with 94 additions and 96 deletions
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 <kcfgfile name="" />
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name=""/>
<group name=""> <group name="">
<entry name="Duration" type="UInt"> <entry name="Duration" type="UInt">
<default>0</default> <default>0</default>
+4 -4
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>TvEffectConfigForm</class> <class>BMWtvEffectConfigForm</class>
<widget class="QWidget" name="TvEffectConfigForm"> <widget class="QWidget" name="BMWtvEffectConfigForm">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@@ -75,6 +75,6 @@
<header>kcolorcombo.h</header> <header>kcolorcombo.h</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources />
<connections/> <connections />
</ui> </ui>
+4 -4
View File
@@ -17,7 +17,7 @@ const blacklist = [
"ksplashqml ksplashqml" "ksplashqml ksplashqml"
]; ];
class %NICK%Effect { class BMW%NICK%Effect {
constructor() { constructor() {
effect.configChanged.connect(this.loadConfig.bind(this)); effect.configChanged.connect(this.loadConfig.bind(this));
effect.animationEnded.connect(this.cleanupForcedRoles.bind(this)); effect.animationEnded.connect(this.cleanupForcedRoles.bind(this));
@@ -35,7 +35,7 @@ class %NICK%Effect {
const duration = effect.readConfig("Duration", defaultDuration) || defaultDuration; const duration = effect.readConfig("Duration", defaultDuration) || defaultDuration;
this.duration = animationTime(duration); this.duration = animationTime(duration);
effect.setUniform(this.shader, "uEffectColor", effect.readConfig("Color", "white")); effect.setUniform(this.shader, "uColor", effect.readConfig("Color", "white"));
} }
static isScaleWindow(window) { static isScaleWindow(window) {
@@ -121,7 +121,7 @@ class %NICK%Effect {
if (effects.hasActiveFullScreenEffect) { if (effects.hasActiveFullScreenEffect) {
return; return;
} }
if (!%NICK%Effect.isScaleWindow(window)) { if (!BMW%NICK%Effect.isScaleWindow(window)) {
return; return;
} }
if (!window.visible || window.skipsCloseAnimation) { if (!window.visible || window.skipsCloseAnimation) {
@@ -168,4 +168,4 @@ class %NICK%Effect {
} }
} }
new %NICK%Effect(); new BMW%NICK%Effect();