okular: implement the slot used by TTS to display errors

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-20 13:01:20 +03:00
parent 53dfe33120
commit 156f9cf306
2 changed files with 6 additions and 0 deletions

View file

@ -869,6 +869,11 @@ void PageView::selectAll()
}
}
void PageView::errorMessage(const QString &message)
{
displayMessage(message, QString(), PageViewMessage::Error);
}
//BEGIN DocumentObserver inherited methods
void PageView::notifySetup( const QVector< Okular::Page * > & pageSet, int setupFlags )
{

View file

@ -115,6 +115,7 @@ Q_OBJECT
public slots:
void copyTextSelection() const;
void selectAll();
void errorMessage(const QString &message);
void openAnnotationWindow( Okular::Annotation *annotation, int pageNumber );