Commit dfce083a authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port KNS method

parent 482cc792
......@@ -215,9 +215,9 @@ QAction* ParleyActions::createDownloadAction(const QObject* recvr, const char* s
QAction* ParleyActions::createUploadAction(const QObject* recvr, const char* slot, KActionCollection* collection)
{
QAction *pAction = KNS3::standardActionUpload(i18n("&Upload Vocabulary Document..."), recvr, slot, collection, "file_upload");
pAction->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")));
QAction *pAction = new QAction(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")), i18n("&Upload Vocabulary Document..."), collection);
collection->addAction(QStringLiteral("file_upload"), pAction);
QObject::connect(pAction, SIGNAL(triggered(bool)), recvr, slot);
pAction->setToolTip(i18n("Share the current vocabulary collection with other users"));
return pAction;
}
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