mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Text information about tool processing
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user