KDEUI
kstatusbar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KSTATUSBAR_H
00023 #define KSTATUSBAR_H
00024
00025 #include <kdeui_export.h>
00026 #include <QtGui/QStatusBar>
00027
00028 class QObject;
00029 class QEvent;
00030 class KStatusBarPrivate;
00031
00059 class KDEUI_EXPORT KStatusBar : public QStatusBar
00060 {
00061 Q_OBJECT
00062
00063 public:
00067 explicit KStatusBar( QWidget* parent = 0 );
00068
00074 ~KStatusBar();
00075
00087 void insertItem(const QString& text, int id, int stretch=0 );
00088
00100 void insertPermanentItem(const QString& text, int id, int stretch=0 );
00101
00110 void insertFixedItem(const QString& text, int id);
00111
00120 void insertPermanentFixedItem(const QString& text, int id);
00121
00127 void removeItem( int id );
00128
00135 bool hasItem( int id ) const;
00136
00140 QString itemText( int id ) const;
00141
00151 void changeItem( const QString& text, int id );
00152
00158 void setItemAlignment(int id, Qt::Alignment alignment);
00159
00167 void setItemFixed(int id, int width=-1);
00168
00169 Q_SIGNALS:
00170
00177 void pressed( int );
00178
00184 void released( int );
00185
00186 protected:
00187 bool eventFilter(QObject* object, QEvent *event);
00188
00189 private:
00190 KStatusBarPrivate* const d;
00191 };
00192
00193 #endif // KSTATUSBAR_H
00194