lib/widgets/propeditor/mycolorcombo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef _MYCOLORCOMBO_H__
00021
#define _MYCOLORCOMBO_H__
00022
00023
#include <qcombobox.h>
00024
#include <qcolordialog.h>
00025
00026
00027
class KColorCombo :
public QComboBox
00028 {
00029 Q_OBJECT
00030 Q_PROPERTY(
QColor color READ color WRITE setColor )
00031
00032
public:
00036
KColorCombo(
QWidget *parent,
const char *name = 0L );
00037 ~
KColorCombo();
00038
00042
void setColor(
const QColor &col );
00046
QColor color() const;
00047
00048
00052
void showEmptyList();
00053
00054 signals:
00058
void activated( const
QColor &col );
00062
void highlighted( const
QColor &col );
00063
00064 protected:
00068 virtual
void resizeEvent(
QResizeEvent *re );
00069
00070 private slots:
00071
void slotActivated(
int index );
00072
void slotHighlighted(
int index );
00073
00074 private:
00075
void addColors();
00076
QColor customColor;
00077
QColor internalcolor;
00078
00079 protected:
00080 virtual
void virtual_hook(
int id,
void* data );
00081 private:
00082 class KColorComboPrivate;
00083 KColorComboPrivate *d;
00084 };
00085
00086 #endif
This file is part of the documentation for KDevelop Version 3.0.4.