summaryrefslogtreecommitdiff
path: root/library/qpemenubar.h
Side-by-side diff
Diffstat (limited to 'library/qpemenubar.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpemenubar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/qpemenubar.h b/library/qpemenubar.h
index 66d0c85..64bf39c 100644
--- a/library/qpemenubar.h
+++ b/library/qpemenubar.h
@@ -16,24 +16,26 @@
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef QPEMENUBAR_H
#define QPEMENUBAR_H
#include <qmenubar.h>
#include <qguardedptr.h>
#include <qvaluelist.h>
+#include <qtopia/qpeglobal.h>
+
class QPEMenuToolFocusManager : public QObject
{
Q_OBJECT
public:
QPEMenuToolFocusManager();
void addWidget( QWidget *w );
void removeWidget( QWidget *w );
void setActive( bool a );
bool isActive() const;
void moveFocus( bool next );
@@ -50,25 +52,25 @@ private slots:
private:
typedef QGuardedPtr<QWidget> GuardedWidget;
QValueList<GuardedWidget> list;
GuardedWidget inFocus;
GuardedWidget oldFocus;
static QPEMenuToolFocusManager *me;
private: // Sharp ROM compatibility
void setMenukeyEnabled ( bool b );
};
-class QPEMenuBar : public QMenuBar
+class QPE_DEPRECATED QPEMenuBar : public QMenuBar
{
Q_OBJECT
public:
QPEMenuBar( QWidget *parent=0, const char* name=0 );
~QPEMenuBar();
protected:
virtual void keyPressEvent( QKeyEvent *e );
/* Patch from Mickey
* Sharp Qtopia1.5 seems to have these functions
* TO BE RESOLVED - zecke