KPenWidget Class Reference

[libkorigin Index] [libkorigin Heirarchy]


QPen selection widget (configuratible). More...

#include </home/mh/korigin/korigin/doc/tmp/kpen.h>

Inherits: QWidget

Public Members

Signals


Detailed Description

KDE (Q)Pen Selector Widget

This widget is a (partial, if you choose so) pen dialog. It has been written for use within other dialogs, so you won´t need to manually create style/width/color control. Note that this widget is *not* connected to the recent pen list.


KPenWidget(int flags, QWidget* parent, const char* name)

Construct a pen widget with the controls specified by theflags. The other two parameters are just as for any QWidget. See KPenFlags on how to make up the flags.

Parameters:
name as in QWidget
parent as in QWidget
flags a combination of KPen_style, KPen_width, etc

~KPenWidget()

Destructor.

void setPen(const QPen& pen)

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.

QPen pen()

Returns the currently selected pen.

void penChanged(const QPen&)

Emitted when the pen is changed (via setPen() or a control).


  • Author: Patrick Schemitz
  • Version: build 980210
  • Documentation generated by mh@jeff_clever on Thu Feb 5 14:15:25 MET 1998
Kdoc