Warning, file /frameworks/knewstuff/src/knewstuffaction.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of KNewStuff2.
0003     SPDX-FileCopyrightText: 2002 Cornelius Schumacher <schumacher@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #include "knewstuffaction.h"
0009 
0010 #include <KActionCollection>
0011 #include <KLocalizedString>
0012 #include <QAction>
0013 
0014 using namespace KNS3;
0015 
0016 #if KNEWSTUFF_BUILD_DEPRECATED_SINCE(5, 78)
0017 QAction *KNS3::standardAction(const QString &what, const QObject *receiver, const char *slot, KActionCollection *parent, const char *name)
0018 {
0019     QAction *action = new QAction(what, parent);
0020     parent->addAction(QLatin1String(name), action);
0021     action->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")));
0022     QObject::connect(action, SIGNAL(triggered(bool)), receiver, slot);
0023 
0024     return action;
0025 }
0026 #endif
0027 
0028 #if KNEWSTUFF_BUILD_DEPRECATED_SINCE(5, 78)
0029 QAction *KNS3::standardActionUpload(const QString &what, const QObject *receiver, const char *slot, KActionCollection *parent, const char *name)
0030 {
0031     QAction *action = new QAction(what, parent);
0032     parent->addAction(QLatin1String(name), action);
0033     action->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")));
0034     QObject::connect(action, SIGNAL(triggered(bool)), receiver, slot);
0035 
0036     return action;
0037 }
0038 #endif