KPropColor Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


A color display with a colro dialog popup button More...

#include <../kpropcolor.h>

Inherits: QFrame

Public Members

Public Slots

Protected Members

Protected Slots


Detailed Description

A color display with a colro dialog popup button. The widget is resized when the button font changes.


KPropColor( QWidget *parent, const char *buttontext, int perc, const char *key=0, const char *group=0, KConfig *config=0, const char *name=0 ) [public]

Constructor. 'perc' is the percentage of space reserved for the button, 'buttontext' is the text on the button,

~KPropColor() [public virtual]

Destructor.

void setLabelColor( QColor color ) [public]

Set the color of the test label.

QColor getLabelColor() [public]

Returns the color of the test label text.

void setConfig() [public slot virtual]

Write the config key value.

void getConfig() [public slot virtual]

Read the config key value into the widget.

void setGroup( const char *group ) [public slot]

set the group to modify

const char* getGroup() [public slot]

Returns the group to be modified

void setKey( const char * ) [public slot]

set the key to modify

const char* getKey() [public slot]

returns the Key to be modified

void setKConfig( KConfig * ) [public slot]

Set the KConfig object to operate upon.

KConfig* getKConfig() [public slot]

Returns the current KConfig object

void resizeEvent( QResizeEvent *rev ) [protected virtual]

Handles resize events for the widget.

void paintEvent( QPaintEvent *pev ) [protected virtual]

Handles paint events for the widget.

void fontChange( const QFont &oldfont ) [protected virtual]

This method is called after a font change.It will call sizeUpdate() to resize the widget to contain the new font.

void sizeUpdate() [protected]

Sets the minimum size to fit the font.

void getColorDialog() [protected slot]

popup the color dialog and put the color in the Label


Documentation generated by fester@cal040052 on Sat Oct 10 12:30:32 /etc/localtime 1998
Kdoc