KPrCircleToggle Class Reference
#include <KPrRotationDialogImpl.h>
Public Slots | |
| void | setChecked (bool on) |
Signals | |
| void | clicked (int id) |
Public Member Functions | |
| KPrCircleToggle (TQWidget *parent, const TQString &image, int id) | |
| int | id () |
Protected Member Functions | |
| void | mousePressEvent (TQMouseEvent *e) |
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.
Constructor & Destructor Documentation
◆ KPrCircleToggle()
| KPrCircleToggle::KPrCircleToggle | ( | TQWidget * | parent, |
| const TQString & | image, | ||
| int | id ) |
Constructor.
- Parameters
-
parent the parent widget, as required by TQt. 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 116 of file KPrRotationDialogImpl.cpp.
Member Function Documentation
◆ clicked
|
signal |
this signal will be emitted whenever the button becomes checked
◆ id()
|
inline |
return the id which is passed in the constructor
Definition at line 77 of file KPrRotationDialogImpl.h.
◆ mousePressEvent()
|
protected |
overwritten method from TQWidget.
Definition at line 132 of file KPrRotationDialogImpl.cpp.
◆ setChecked
|
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 138 of file KPrRotationDialogImpl.cpp.
The documentation for this class was generated from the following files:
