kpresenter
KPrCircleToggle Class Reference
#include <KPrRotationDialogImpl.h>
Inherits QLabel.
Detailed Description
A toggle-button like widget that shows one pixmap when it is checked, and another when it is unselected.Definition at line 63 of file KPrRotationDialogImpl.h.
Public Slots | |
void | setChecked (bool on) |
Signals | |
void | clicked (int id) |
Public Member Functions | |
KPrCircleToggle (QWidget *parent, const QString &image, int id) | |
int | id () |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *e) |
Constructor & Destructor Documentation
KPrCircleToggle::KPrCircleToggle | ( | QWidget * | parent, | |
const QString & | image, | |||
int | id | |||
) |
Constructor.
- Parameters:
-
parent the parent widget, as required by Qt. image the named image that we will use. "rotate/" is prepended and "dn" is appended for the checked state. id the id that will be used in the clicked signal
Definition at line 117 of file KPrRotationDialogImpl.cpp.
Member Function Documentation
int KPrCircleToggle::id | ( | ) | [inline] |
return the id which is passed in the constructor
Definition at line 76 of file KPrRotationDialogImpl.h.
void KPrCircleToggle::clicked | ( | int | id | ) | [signal] |
this signal will be emitted whenever the button becomes checked
void KPrCircleToggle::setChecked | ( | bool | on | ) | [slot] |
Check or uncheck the button.
On change the toggle will emit the clicked signal.
- Parameters:
-
on the new state of the button.
Definition at line 139 of file KPrRotationDialogImpl.cpp.
void KPrCircleToggle::mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
The documentation for this class was generated from the following files: