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:
parent
47732c54b6
commit
d93b1d4943
2 changed files with 6 additions and 0 deletions
|
@ -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())) {
|
||||
|
|
|
@ -25,6 +25,7 @@ public:
|
|||
int animationDuration() const;
|
||||
void setAnimationDuration(int duration);
|
||||
|
||||
int requestedEffectChainPosition() const override;
|
||||
void grabbedKeyboardEvent(QKeyEvent *keyEvent) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
|
|
Loading…
Reference in a new issue