Ability to disable animation of message widget

* Allows for persistent messages that can change text without disturbing the user interface
* Immediate improvement to KeeShare group edit window
This commit is contained in:
Jonathan White 2020-03-15 09:44:28 -04:00
parent 7ef1ee916b
commit 730367557f
3 changed files with 26 additions and 2 deletions

View file

@ -36,8 +36,11 @@ public:
static const int LongAutoHideTimeout;
static const int DisableAutoHide;
void setAnimate(bool state);
signals:
void showAnimationStarted();
void hideAnimationStarted();
public slots:
void showMessage(const QString& text, MessageWidget::MessageType type);
@ -49,6 +52,7 @@ public slots:
private:
QTimer* m_autoHideTimer;
int m_autoHideTimeout;
bool m_animate;
};
#endif // MESSAGEWIDGET_H