kkeybutton.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KKEYBUTTON_H_
00021 #define _KKEYBUTTON_H_
00022
00023 #include <qpushbutton.h>
00024 #include <kshortcut.h>
00025
00041 class KKeyButton: public QPushButton
00042 {
00043 Q_OBJECT
00044
00045 public:
00049 KKeyButton( QWidget *parent = 0, const char *name = 0 );
00053 virtual ~KKeyButton();
00054
00056 void setShortcut( const KShortcut& cut );
00058 void setShortcut( const KShortcut& cut, bool bQtShortcut );
00059 const KShortcut& shortcut() const
00060 { return m_cut; }
00061
00065 void setText( const QString& text );
00066
00067 signals:
00068 void capturedShortcut( const KShortcut& );
00069
00070 public slots:
00075 void captureShortcut();
00076
00077 protected:
00078 KShortcut m_cut;
00079 bool m_bEditing;
00080
00084 void drawButton( QPainter* _painter );
00085
00086 protected:
00087 virtual void virtual_hook( int id, void* data );
00088 private:
00089 class KKeyButtonPrivate* d;
00090 };
00091
00092 #endif
This file is part of the documentation for kdelibs Version 3.1.4.