mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-28 19:28:38 +00:00
Add empty widget annotation
This commit is contained in:
parent
b2c5aa61d7
commit
48dc3779f7
1 changed files with 17 additions and 5 deletions
|
@ -334,12 +334,24 @@ public:
|
|||
items << "Cert1"
|
||||
<< "Cert2";
|
||||
|
||||
bool resok;
|
||||
QString cert = QInputDialog::getItem(nullptr, i18n("Select certificate to sign with"), i18n("Certificates:"), items, 0, false, &resok);
|
||||
Okular::Annotation * ann = nullptr;
|
||||
|
||||
m_creationCompleted = false;
|
||||
clicked = false;
|
||||
return QList<Okular::Annotation *>();
|
||||
bool resok;
|
||||
QString cert = QInputDialog::getItem(nullptr, i18n( "Select certificate to sign with" ), i18n( "Certificates:" ), items, 0, false, &resok);
|
||||
|
||||
if (resok)
|
||||
{
|
||||
Okular::WidgetAnnotation * wa = new Okular::WidgetAnnotation();
|
||||
ann = wa;
|
||||
}
|
||||
|
||||
m_creationCompleted = false;
|
||||
clicked = false;
|
||||
|
||||
if ( !ann )
|
||||
return QList< Okular::Annotation* >();
|
||||
|
||||
return QList< Okular::Annotation* >() << ann;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue