colorComboBox.h 441 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5
#ifndef _COLORCOMBOBOX_H
#define _COLORCOMBOBOX_H

#include <QComboBox>

Thery Sylvain's avatar
Thery Sylvain committed
6
#include "dll.h"
Sylvain Thery's avatar
Sylvain Thery committed
7

Pierre Kraemer's avatar
Pierre Kraemer committed
8 9 10
class QColor;
class QWidget;

Sylvain Thery's avatar
Sylvain Thery committed
11
class SCHNAPPS_API ColorComboBox : public QComboBox
Pierre Kraemer's avatar
Pierre Kraemer committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{
	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