kcolorcombo.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
#ifndef _KCOLORCOMBO_H__
00027
#define _KCOLORCOMBO_H__
00028
00029
#include <qcombobox.h>
00030
#include <kcolordialog.h>
00031
#include "kselect.h"
00032
00033
00034
class KColorComboInternal;
00035
00039 class KColorCombo :
public QComboBox
00040 {
00041 Q_OBJECT
00042 Q_PROPERTY(
QColor color READ color WRITE setColor )
00043
00044
public:
00048
KColorCombo(
QWidget *parent,
const char *name = 0L );
00049 ~
KColorCombo();
00050
00054
void setColor(
const QColor &col );
00058
QColor color() const;
00059
00060
00064
void showEmptyList();
00065
00066 signals:
00070
void activated( const
QColor &col );
00074
void highlighted( const
QColor &col );
00075
00076 protected:
00077 virtual
void resizeEvent(
QResizeEvent *re );
00078
00079 private slots:
00080
void slotActivated(
int index );
00081
void slotHighlighted(
int index );
00082
00083 private:
00084
void addColors();
00085
QColor customColor;
00086
QColor internalcolor;
00087
00088 protected:
00089 virtual
void virtual_hook(
int id,
void* data );
00090 private:
00091 class KColorComboPrivate;
00092 KColorComboPrivate *d;
00093 };
00094
00095 #endif
This file is part of the documentation for kdeui Library Version 3.3.0.