OClickableLabel Class Reference
This class is a special QLabel which can behave as a QPushButton or QToggleButton. A Label behaving as button. More...
#include <oclickablelabel.h>
Inheritance diagram for OClickableLabel:


Public Slots | |
| void | setOn (bool on) |
Signals | |
| void | clicked () |
| emitted when the labels gets clicked | |
| void | toggled (bool on) |
| emitted when the labels gets toggled | |
Public Member Functions | |
| OClickableLabel (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| This constructs the clickable ButtonLabel. | |
| void | setToggleButton (bool t) |
| This method makes the label behave as a toggle button. | |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *e) |
| void | mouseReleaseEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *e) |
Detailed Description
This class is a special QLabel which can behave as a QPushButton or QToggleButton. A Label behaving as button.The reason to use a clickable is if you want to save space or you want to skip the border of a normal button
QLabel* lbl = new OClickableLabel( parent, "PushLabel" ); lbl->setPixmap( "config" ); QWhatsThis::add( lbl, tr("Click here to do something") );
- Author:
- Hakan Ardo, Maximillian Reiß ( harlekin@handhelds.org )
- See also:
- QLabel
QToggleButton
- Version:
- 1.0
Definition at line 26 of file oclickablelabel.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
This constructs the clickable ButtonLabel.
Definition at line 11 of file oclickablelabel.cpp. References QFrame::setFrameShadow(). |
Member Function Documentation
|
|
This method makes the label behave as a toggle button.
Definition at line 28 of file oclickablelabel.cpp. Referenced by OTimePicker::OTimePicker(). |
|
|
Definition at line 114 of file oclickablelabel.cpp. |
|
|
emitted when the labels gets clicked
|
|
|
emitted when the labels gets toggled
|
The documentation for this class was generated from the following files:
