kmenubar.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _KMENUBAR_H
00026 #define _KMENUBAR_H
00027
00028 #include <qmenubar.h>
00029
00040 class KMenuBar : public QMenuBar
00041 {
00042 Q_OBJECT
00043
00044 public:
00045
00046 KMenuBar (QWidget *parent=0, const char *name=0);
00047 ~KMenuBar ();
00048
00066 void setTopLevelMenu(bool top_level = true);
00067
00073 bool isTopLevelMenu() const;
00074
00075 virtual void setGeometry( const QRect &r ) { QMenuBar::setGeometry( r ); }
00076 virtual void setGeometry( int x, int y, int w, int h );
00077
00078 virtual void show();
00079 protected slots:
00080 void slotReadConfig();
00081
00082 protected:
00083 void showEvent( QShowEvent* );
00084 void resizeEvent( QResizeEvent* );
00085 bool eventFilter(QObject *, QEvent *);
00086
00087 protected:
00088 virtual void virtual_hook( int id, void* data );
00089 private:
00090 void setTopLevelMenuInternal(bool top_level = true);
00091 void updateKMenubarSize();
00092 class KMenuBarPrivate;
00093 KMenuBarPrivate *d;
00094 };
00095
00096 #endif
This file is part of the documentation for kdelibs Version 3.1.0.