File indexing completed on 2024-10-13 04:22:08

0001 /*
0002     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef _K3B_ACTION_H_
0007 #define _K3B_ACTION_H_
0008 
0009 #include <KToggleAction>
0010 #include <KActionCollection>
0011 
0012 #include <QObject>
0013 #include <QIcon>
0014 #include <QAction>
0015 
0016 namespace K3b {
0017     /**
0018      * Create a QAction the old (way cooler) KDE3 way. Porting becomes a simple replacement.
0019      */
0020     QAction* createAction( QObject* parent,
0021                            const QString& text, const QString& icon, const
0022                            QKeySequence& shortcut, QObject* receiver, const char* slot,
0023                            KActionCollection* actionCollection = 0,
0024                            const QString& actionName = QString() );
0025     KToggleAction* createToggleAction( QObject* parent,
0026                                        const QString& text, const QString& icon, const
0027                                        QKeySequence& shortcut, QObject* receiver, const char* slot,
0028                                        KActionCollection* actionCollection = 0,
0029                                        const QString& actionName = QString() );
0030 }
0031 
0032 #endif