From d93b1d4943b91fb9515cdf69843978f7b5fa94e3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 2 Dec 2022 10:46:59 +0200 Subject: [PATCH] effects/tileseditor: Specify effect chain pos The explicit effect chain position is needed to ensure that the effect is properly ordered with other effects such as screenshot. --- src/effects/tileseditor/tileseditoreffect.cpp | 5 +++++ src/effects/tileseditor/tileseditoreffect.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/effects/tileseditor/tileseditoreffect.cpp b/src/effects/tileseditor/tileseditoreffect.cpp index 8af1274800..6cf8c0cb87 100644 --- a/src/effects/tileseditor/tileseditoreffect.cpp +++ b/src/effects/tileseditor/tileseditoreffect.cpp @@ -95,6 +95,11 @@ void TilesEditorEffect::setAnimationDuration(int duration) } } +int TilesEditorEffect::requestedEffectChainPosition() const +{ + return 70; +} + void TilesEditorEffect::grabbedKeyboardEvent(QKeyEvent *keyEvent) { if (m_toggleShortcut.contains(keyEvent->key() | keyEvent->modifiers())) { diff --git a/src/effects/tileseditor/tileseditoreffect.h b/src/effects/tileseditor/tileseditoreffect.h index 331f376ae8..f7fe2a5423 100644 --- a/src/effects/tileseditor/tileseditoreffect.h +++ b/src/effects/tileseditor/tileseditoreffect.h @@ -25,6 +25,7 @@ public: int animationDuration() const; void setAnimationDuration(int duration); + int requestedEffectChainPosition() const override; void grabbedKeyboardEvent(QKeyEvent *keyEvent) override; public Q_SLOTS: