1 | /* |
2 | Copyright (C) 2009 by Rahman Duran <rahman.duran@gmail.com> |
3 | |
4 | This library is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU Library General Public License as published |
6 | by the Free Software Foundation; either version 2 of the License or |
7 | ( at your option ) version 3 or, at the discretion of KDE e.V. |
8 | ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. |
9 | |
10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef KURLNAVIGATORMENU_P_H |
22 | #define KURLNAVIGATORMENU_P_H |
23 | |
24 | #include <kmenu.h> |
25 | |
26 | namespace KDEPrivate |
27 | { |
28 | |
29 | /** |
30 | * @brief Provides drop-down menus for the URL navigator. |
31 | * |
32 | * The implementation extends KMenu with drag & drop support. |
33 | * |
34 | * @internal |
35 | */ |
36 | class : public KMenu |
37 | { |
38 | Q_OBJECT |
39 | |
40 | public: |
41 | explicit (QWidget* parent); |
42 | virtual (); |
43 | |
44 | Q_SIGNALS: |
45 | /** |
46 | * Is emitted when drop event occurs. |
47 | */ |
48 | void (QAction* action, QDropEvent* event); |
49 | |
50 | /** |
51 | * Is emitted, if the action \p action has been clicked |
52 | * by the middle mouse button (QMenu ignores a click |
53 | * with the middle mouse button). |
54 | */ |
55 | void (QAction* action); |
56 | |
57 | protected: |
58 | virtual void (QDragEnterEvent* event); |
59 | virtual void (QDragMoveEvent* event); |
60 | virtual void (QDropEvent* event); |
61 | virtual void (QMouseEvent* event); |
62 | }; |
63 | |
64 | } // namespace KDEPrivate |
65 | |
66 | #endif |
67 | |