Commit 7d8a87dd authored by Laurent Montel's avatar Laurent Montel 😁

Clear element after execute

parent 9f7226bd
......@@ -56,6 +56,7 @@ ViewerPluginInterface::SpecificFeatureTypes ViewerPluginExternalscriptInterface:
void ViewerPluginExternalscriptInterface::setText(const QString &text)
{
mSelectedText = text;
//TODO
}
......@@ -67,6 +68,12 @@ void ViewerPluginExternalscriptInterface::execute()
} else {
qDebug() << "Problem with arguments";
}
//TODO clear();
}
void ViewerPluginExternalscriptInterface::clear()
{
mSelectedText.clear();
}
void ViewerPluginExternalscriptInterface::createAction(KActionCollection *ac)
......
......@@ -41,9 +41,11 @@ private Q_SLOTS:
private:
void createAction(KActionCollection *ac);
void clear();
QList<QAction *> mAction;
QString adaptArguments(const QString &scriptArguments);
QStringList mCurrentInfo;
QString mSelectedText;
};
}
#endif // VIEWERPLUGINEXTERNALSCRIPTINTERFACE_H
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