fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kdeui / xmlgui / kmenumenuhandler_p.h
blob79b4ddb5451adc59320b0844d3f8d002ad3a386b
1 /* This file is part of the KDE project
2 Copyright (C) 2006 Olivier Goffart <ogoffart@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
21 #ifndef kmenumenuhandler_p_h
22 #define kmenumenuhandler_p_h
25 #include <QObject>
28 class KXMLGUIBuilder;
29 class KMenu;
30 class KSelectAction;
32 namespace KDEPrivate {
34 /**
35 * @internal
36 * This class handle the context menu of KMenu.
37 * Used by KXmlGuiBuilder
38 * @author Olivier Goffart <ogoffart@kde.org>
40 class KMenuMenuHandler : public QObject
42 Q_OBJECT
43 public:
44 KMenuMenuHandler(KXMLGUIBuilder *b);
45 ~KMenuMenuHandler() {}
46 void insertKMenu( KMenu *menu );
48 private Q_SLOTS:
49 void slotSetShortcut();
50 void buildToolbarAction();
51 void slotAddToToolBar(int);
53 private:
54 KXMLGUIBuilder *m_builder;
55 KSelectAction *m_toolbarAction;
60 } //END namespace KDEPrivate
62 #endif