Commit fafbf12e authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Port KNS method

See https://phabricator.kde.org/T12200.
parent 757b6d9f
Pipeline #42405 passed with stage
in 6 minutes and 9 seconds
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include <KTipDialog> #include <KTipDialog>
#include <KToggleAction> #include <KToggleAction>
#include <KToolBar> #include <KToolBar>
#include <KNewStuff3/kns3/knewstuffaction.h>
#include <QMenu> #include <QMenu>
#include <QStatusBar> #include <QStatusBar>
...@@ -154,12 +153,13 @@ void KStars::initActions() ...@@ -154,12 +153,13 @@ void KStars::initActions()
QAction *ka; QAction *ka;
// ==== File menu ================ // ==== File menu ================
ka = KNS3::standardAction(i18n("Download New Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data") ka = new QAction(QIcon::fromTheme("favorites"), i18n("Download New Data..."), this);
<< QKeySequence(Qt::CTRL + Qt::Key_N); connect(ka, &QAction::triggered, this, &KStars::slotDownload);
ka->setIcon(QIcon::fromTheme("favorites")); ka->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N));
ka->setWhatsThis(i18n("Downloads new data")); ka->setWhatsThis(i18n("Downloads new data"));
ka->setToolTip(ka->whatsThis()); ka->setToolTip(ka->whatsThis());
ka->setStatusTip(ka->whatsThis()); ka->setStatusTip(ka->whatsThis());
actionCollection()->addAction(QStringLiteral("get_data"), ka);
#ifdef HAVE_CFITSIO #ifdef HAVE_CFITSIO
actionCollection()->addAction("open_file", this, SLOT(slotOpenFITS())) actionCollection()->addAction("open_file", this, SLOT(slotOpenFITS()))
......
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