-rw-r--r-- | microkde/kdeui/kbuttonbox.cpp | 0 | ||||
-rw-r--r-- | microkde/kdeui/kpopupmenu.cpp | 19 | ||||
-rw-r--r-- | microkde/kdeui/kpopupmenu.h | 22 | ||||
-rw-r--r-- | microkde/microkde.pro | 2 | ||||
-rw-r--r-- | microkde/microkdeE.pro | 2 |
5 files changed, 43 insertions, 2 deletions
diff --git a/microkde/kdeui/kbuttonbox.cpp b/microkde/kdeui/kbuttonbox.cpp index 16206e8..83d622a 100644 --- a/microkde/kdeui/kbuttonbox.cpp +++ b/microkde/kdeui/kbuttonbox.cpp | |||
diff --git a/microkde/kdeui/kpopupmenu.cpp b/microkde/kdeui/kpopupmenu.cpp new file mode 100644 index 0000000..96d2a87 --- a/dev/null +++ b/microkde/kdeui/kpopupmenu.cpp | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | #include <kpopupmenu.h> | ||
3 | #include <qtimer.h> | ||
4 | |||
5 | |||
6 | KPopupMenu::KPopupMenu ( QWidget * parent, const char * name ) | ||
7 | : QPopupMenu ( parent, name ) {;} | ||
8 | |||
9 | |||
10 | |||
11 | KMenuBar::KMenuBar ( QWidget * parent, const char * name ) | ||
12 | : QPEMenuBar ( parent, name ) {} | ||
13 | |||
14 | void KMenuBar::focusOutEvent ( QFocusEvent * e) | ||
15 | { | ||
16 | QPEMenuBar::focusOutEvent( e ); | ||
17 | QTimer::singleShot( 100, this, SIGNAL ( lostFocus() ) ); | ||
18 | |||
19 | } | ||
diff --git a/microkde/kdeui/kpopupmenu.h b/microkde/kdeui/kpopupmenu.h index 1352429..f16ce77 100644 --- a/microkde/kdeui/kpopupmenu.h +++ b/microkde/kdeui/kpopupmenu.h | |||
@@ -2,13 +2,31 @@ | |||
2 | #define KPOPUPMENU_H | 2 | #define KPOPUPMENU_H |
3 | 3 | ||
4 | #include <qpopupmenu.h> | 4 | #include <qpopupmenu.h> |
5 | #ifdef DESKTOP_VERSION | ||
6 | #include <qmenubar.h> | ||
7 | #define QPEMenuBar QMenubar | ||
8 | #else | ||
9 | #include <qpe/qpemenubar.h> | ||
10 | #endif | ||
5 | 11 | ||
6 | class KPopupMenu : public QPopupMenu | 12 | class KPopupMenu : public QPopupMenu |
7 | { | 13 | { |
14 | Q_OBJECT | ||
8 | public: | 15 | public: |
9 | KPopupMenu ( QWidget * parent=0, const char * name=0 ) | 16 | KPopupMenu ( QWidget * parent=0, const char * name=0 ); |
10 | : QPopupMenu ( parent, name ) {} | 17 | |
18 | }; | ||
11 | 19 | ||
20 | |||
21 | class KMenuBar : public QPEMenuBar | ||
22 | { | ||
23 | Q_OBJECT | ||
24 | public: | ||
25 | KMenuBar ( QWidget * parent=0, const char * name=0 ); | ||
26 | signals: | ||
27 | void lostFocus(); | ||
28 | protected: | ||
29 | void focusOutEvent ( QFocusEvent * e); | ||
12 | }; | 30 | }; |
13 | 31 | ||
14 | #endif | 32 | #endif |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 44e5f9d..7120bdd 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -103,6 +103,7 @@ KDGanttMinimizeSplitter.h \ | |||
103 | kdeui/ktoolbarbutton.h \ | 103 | kdeui/ktoolbarbutton.h \ |
104 | kdeui/ktoolbarhandler.h \ | 104 | kdeui/ktoolbarhandler.h \ |
105 | kdeui/kaction.h \ | 105 | kdeui/kaction.h \ |
106 | kdeui/kpopupmenu.h \ | ||
106 | kdeui/kactionclasses.h \ | 107 | kdeui/kactionclasses.h \ |
107 | kdeui/kactioncollection.h \ | 108 | kdeui/kactioncollection.h \ |
108 | kdecore/kprefs.h \ | 109 | kdecore/kprefs.h \ |
@@ -165,6 +166,7 @@ KDGanttMinimizeSplitter.cpp \ | |||
165 | kresources/selectdialog.cpp \ | 166 | kresources/selectdialog.cpp \ |
166 | kutils/kcmultidialog.cpp \ | 167 | kutils/kcmultidialog.cpp \ |
167 | kdeui/kaction.cpp \ | 168 | kdeui/kaction.cpp \ |
169 | kdeui/kpopupmenu.cpp \ | ||
168 | kdeui/kactionclasses.cpp \ | 170 | kdeui/kactionclasses.cpp \ |
169 | kdeui/kactioncollection.cpp \ | 171 | kdeui/kactioncollection.cpp \ |
170 | kdeui/kmainwindow.cpp \ | 172 | kdeui/kmainwindow.cpp \ |
diff --git a/microkde/microkdeE.pro b/microkde/microkdeE.pro index 335fcd0..8fe2bd5 100644 --- a/microkde/microkdeE.pro +++ b/microkde/microkdeE.pro | |||
@@ -56,6 +56,7 @@ KDGanttMinimizeSplitter.h \ | |||
56 | ofontselector.h \ | 56 | ofontselector.h \ |
57 | kdeui/kguiitem.h \ | 57 | kdeui/kguiitem.h \ |
58 | kdeui/kaction.h \ | 58 | kdeui/kaction.h \ |
59 | kdeui/kpopupmenu.h \ | ||
59 | kdeui/kactionclasses.h \ | 60 | kdeui/kactionclasses.h \ |
60 | kdeui/kactioncollection.h \ | 61 | kdeui/kactioncollection.h \ |
61 | kdeui/kcmodule.h \ | 62 | kdeui/kcmodule.h \ |
@@ -139,6 +140,7 @@ KDGanttMinimizeSplitter.cpp fncolordialog.cpp \ | |||
139 | kdecore/kstandarddirs.cpp \ | 140 | kdecore/kstandarddirs.cpp \ |
140 | kdecore/kstringhandler.cpp \ | 141 | kdecore/kstringhandler.cpp \ |
141 | kdeui/kaction.cpp \ | 142 | kdeui/kaction.cpp \ |
143 | kdeui/kpopupmenu.cpp \ | ||
142 | kdeui/kactionclasses.cpp \ | 144 | kdeui/kactionclasses.cpp \ |
143 | kdeui/kactioncollection.cpp \ | 145 | kdeui/kactioncollection.cpp \ |
144 | kdeui/kbuttonbox.cpp \ | 146 | kdeui/kbuttonbox.cpp \ |