Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KKeyButton Class Reference
A push button that looks like a keyboard key.
More...
#include <kkeybutton.h>
List of all members.
Detailed Description
A push button that looks like a keyboard key.
A push button that looks like a keyboard key.
You must call setShortcut() to set the widget's currently displayed key. You can call captureShortcut() to get a new shortcut from the user. If captureShortcut() suceeds, then the capturedShortcut signal will be emitted with the value of the new shortcut. The widget containing a KKeyButton widget must connect to this signal and check if the shortcut is valid. If it is, you will need to call setShortcut() with the new value in order make it the key currently displayed.
- Author:
-
Mark Donohoe <donohoe@kde.org>
Definition at line 41 of file kkeybutton.h.
Constructor & Destructor Documentation
| KKeyButton::KKeyButton |
( |
QWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constructs key button widget. |
| virtual KKeyButton::~KKeyButton |
( |
|
) |
[virtual] |
|
|
|
Destructs the key button widget. |
Member Function Documentation
| void KKeyButton::captureShortcut |
( |
|
) |
[slot] |
|
|
|
Call this method to capture a shortcut from the keyboard. If it succeeds, the capturedShortcut() will be emitted. |
| void KKeyButton::drawButton |
( |
QPainter * |
_painter |
) |
[protected] |
|
|
|
Reimplemented for internal reasons. |
| void KKeyButton::setShortcut |
( |
const KShortcut & |
cut |
) |
|
|
| void KKeyButton::setText |
( |
const QString & |
text |
) |
|
|
|
|
Reimplemented for internal purposes. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:16 2003 for kdelibs by
1.2.18