[libkorigin Index] [libkorigin Heirarchy]
QPen selection button. More...
#include </home/mh/korigin/korigin/doc/tmp/kpen.h>
Inherits: QPushButton
KDE (Q)Pen Selector Button.
This is a convenience class for the KDE Pen Selector Dialog, class KPenDialog. It shows a push button displaying the preselected pen. When clicked, executes the KPenDialog to let the user modify the pen.
Simplest use:
QPushButton* pen = new KPenButton(my_pen,this,"button_pen");
//...
my_pen = pen->pen();
Construct a Button which triggers a KPenDialog. The default pen is a solid line, black, 1pt.
If you want to offer a preselected pen, use the other variant of the constructor, or use setPen().
name | just like in QPushButton |
parent | just like in QPushButton |
Construct a Button which triggers a KPenDialog. Use the specified pen as a preselection.
name | just like in QPushButton |
parent | just like in QPushButton |
deflt | preselected pen |
Destructor.
Preselect a pen. This selects the specified pen as the current pen. The button is updated, the newly set pen shown. A changed() signal is emitted.
Returns the currently selected pen.
Re-implemented draw function for the buttonīs content. This function draws the penImage() of the current pen into the painter and thus into the button.
Connected to the QPushButtons signal. This function actually invokes the KPenDialog.
Emitted when the pen is changed (via setPen() or dialog).
| Kdoc |