Commit af3b2277 authored by Katarina Behrens's avatar Katarina Behrens

Add slot for 'Sign' button, shows info overlay so far

parent c98c5d5a
......@@ -665,6 +665,7 @@ void PageView::setupActions( KActionCollection * ac )
d->aToggleSignature = new KToggleAction(QIcon::fromTheme( QStringLiteral("application-pkcs7-signature") ), i18n("&Sign"), this);
ac->addAction(QStringLiteral("mouse_toggle_sign"), d->aToggleSignature );
d->aToggleSignature->setCheckable( true );
connect( d->aToggleSignature, &QAction::toggled, this, &PageView::slotToggleSignature );
ToolAction *ta = new ToolAction( this );
ac->addAction( QStringLiteral("mouse_selecttools"), ta );
......@@ -5175,6 +5176,17 @@ void PageView::slotToggleAnnotator( bool on )
inHere = false;
}
void PageView::slotToggleSignature()
{
d->messageWindow->display( i18n(
"Draw a rectangle to insert the signature field"
), QString(), PageViewMessage::Info, -1 );
// force an update of the cursor
updateCursor();
Okular::Settings::self()->save();
}
void PageView::slotAutoScrollUp()
{
if ( d->scrollIncrement < -9 )
......
......@@ -253,6 +253,7 @@ Q_OBJECT
void slotSetMouseTextSelect();
void slotSetMouseTableSelect();
void slotToggleAnnotator( bool );
void slotToggleSignature();
void slotAutoScrollUp();
void slotAutoScrollDown();
void slotScrollUp( bool singleStep = false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment