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.
This commit is contained in:
Vlad Zahorodnii 2022-12-02 10:46:59 +02:00
parent 47732c54b6
commit d93b1d4943
2 changed files with 6 additions and 0 deletions

View file

@ -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())) {

View file

@ -25,6 +25,7 @@ public:
int animationDuration() const;
void setAnimationDuration(int duration);
int requestedEffectChainPosition() const override;
void grabbedKeyboardEvent(QKeyEvent *keyEvent) override;
public Q_SLOTS: