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

Port KNS3::standardAction method

See https://phabricator.kde.org/T12200
parent c68b3fb7
......@@ -43,7 +43,6 @@
#include <KStandardAction>
#include <KToggleAction>
#include <KToggleFullScreenAction>
#include <kns3/knewstuffaction.h>
#include <kns3/uploaddialog.h>
// Marble library classes
......@@ -774,12 +773,11 @@ void MarblePart::setupActions()
actionCollection() );
// Action: Get hot new stuff
m_newStuffAction = KNS3::standardAction( i18nc( "Action for downloading maps (GHNS)",
"Download Maps..."),
this,
SLOT(showNewStuffDialog()),
actionCollection(), "new_stuff" );
const QString knsText = i18nc("Action for downloading maps (GHNS)", "Download Maps...");
m_newStuffAction = new QAction(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")), knsText, this);
connect(m_newStuffAction, &QAction::triggered, this, &MarblePart::showNewStuffDialog);
m_newStuffAction->setStatusTip( i18nc( "Status tip", "Download new maps"));
actionCollection()->addAction(QStringLiteral("new_stuff"), m_newStuffAction);
actionCollection()->setDefaultShortcut( m_newStuffAction, Qt::CTRL + Qt::Key_N );
// Action: Create a New Map
......
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