From 060175735f486e263b2803e23b78628d5df42cdf Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Wed, 26 Jun 2019 10:07:36 +0200 Subject: [PATCH] Open certificate selection dialog on mouse release --- part/pageviewannotator.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/part/pageviewannotator.cpp b/part/pageviewannotator.cpp index 7b45e9e39..2ac490940 100644 --- a/part/pageviewannotator.cpp +++ b/part/pageviewannotator.cpp @@ -327,6 +327,20 @@ public: { return PickPointEngine::event(type, button, modifiers, nX, nY, xScale, yScale, page); } + + QList end() override + { + QStringList items; + items << "Cert1" + << "Cert2"; + + bool resok; + QString cert = QInputDialog::getItem(nullptr, i18n("Select certificate to sign with"), i18n("Certificates:"), items, 0, false, &resok); + + m_creationCompleted = false; + clicked = false; + return QList(); + } }; /** @short PolyLineEngine */