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:
00080 virtual void resizeEvent( QResizeEvent *re );
00081
00082 private slots:
00083 void slotActivated( int index );
00084 void slotHighlighted( int index );
00085
00086 private:
00087 void addColors();
00088 QColor customColor;
00089 QColor internalcolor;
00090
00091 protected:
00092 virtual void virtual_hook( int id, void* data );
00093 private:
00094 class KColorComboPrivate;
00095 KColorComboPrivate *d;
00096 };
00097
00098 #endif // __KCOLORCOMBO_H__
This file is part of the documentation for kdelibs Version 3.1.5.