colorComboBox.h 410 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#ifndef _COLORCOMBOBOX_H
#define _COLORCOMBOBOX_H

#include <QComboBox>

class QColor;
class QWidget;

class ColorComboBox : public QComboBox
{
	Q_OBJECT
	Q_PROPERTY(QColor color READ color WRITE setColor USER true)

public:
	QColor color() const;
	void setColor(QColor c);

public:
	ColorComboBox(QWidget *widget = 0);

private:
	void populateList();

public slots:
	void slotHighlight(int index);
};

#endif