From fafbf12e0b1cf430d83adb07b52c6923dc65bc92 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 27 Nov 2020 16:46:58 +0100 Subject: [PATCH] Port KNS method See https://phabricator.kde.org/T12200. --- kstars/kstarsinit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kstars/kstarsinit.cpp b/kstars/kstarsinit.cpp index 7c3ae04db..e4112c638 100644 --- a/kstars/kstarsinit.cpp +++ b/kstars/kstarsinit.cpp @@ -43,7 +43,6 @@ #include #include #include -#include #include #include @@ -154,12 +153,13 @@ void KStars::initActions() QAction *ka; // ==== File menu ================ - ka = KNS3::standardAction(i18n("Download New Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data") - << QKeySequence(Qt::CTRL + Qt::Key_N); - ka->setIcon(QIcon::fromTheme("favorites")); + ka = new QAction(QIcon::fromTheme("favorites"), i18n("Download New Data..."), this); + connect(ka, &QAction::triggered, this, &KStars::slotDownload); + ka->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N)); ka->setWhatsThis(i18n("Downloads new data")); ka->setToolTip(ka->whatsThis()); ka->setStatusTip(ka->whatsThis()); + actionCollection()->addAction(QStringLiteral("get_data"), ka); #ifdef HAVE_CFITSIO actionCollection()->addAction("open_file", this, SLOT(slotOpenFITS())) -- GitLab