Text information about tool processing

This commit is contained in:
Jakub Melka
2020-02-29 14:40:29 +01:00
parent 475103f5d5
commit 7db167eea3
3 changed files with 21 additions and 0 deletions

View File

@ -91,8 +91,17 @@ public:
const std::optional<QCursor>& getCursor() const;
signals:
/// Informs about tool activity changed (if tool is enabled or disabled)
/// \param active Is tool active?
void toolActivityChanged(bool active);
/// This is signal is set, when we want to display information message
/// to the user, with timeout in miliseconds, after which message
/// dissappears.
/// \param text Text, which should be displayed to the user
/// \param timeout Timeout in miliseconds
void messageDisplayRequest(const QString& text, int timeout);
protected:
virtual void setActiveImpl(bool active);
virtual void updateActions();
@ -458,6 +467,14 @@ public:
/// in this case, optional will be set to nullopt.
const std::optional<QCursor>& getCursor() const;
signals:
/// This is signal is set, when we want to display information message
/// to the user, with timeout in miliseconds, after which message
/// dissappears.
/// \param text Text, which should be displayed to the user
/// \param timeout Timeout in miliseconds
void messageDisplayRequest(const QString& text, int timeout);
private:
void onToolActionTriggered(bool checked);