Commit 26f830c6 authored by Laurent Montel's avatar Laurent Montel 😁

Create action

parent 2ec1c6e8
......@@ -45,7 +45,7 @@ QAction *ViewerPluginExpandurlInterface::action() const
void ViewerPluginExpandurlInterface::showWidget()
{
//Nothing
//TODO expand url
}
ViewerPluginInterface::SpecificFeatureTypes ViewerPluginExpandurlInterface::featureTypes() const
......@@ -56,12 +56,9 @@ ViewerPluginInterface::SpecificFeatureTypes ViewerPluginExpandurlInterface::feat
void ViewerPluginExpandurlInterface::createAction(KActionCollection *ac)
{
if (ac) {
#if 0
mAction = new QAction(i18n("Translate..."), this);
ac->setDefaultShortcut(mAction, QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_T));
mAction->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-locale")));
ac->addAction(QStringLiteral("translate_text"), mAction);
mAction = new QAction(i18n("Expand Url"), this);
ac->addAction(QStringLiteral("expand_short_url"), mAction);
ac->setShortcutsConfigurable(mAction, false);
connect(mAction, &QAction::triggered, this, &ViewerPluginExpandurlInterface::slotActivatePlugin);
#endif
}
}
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