Updraft
1.0
Open source glider flight visualisation tool.
|
00001 #ifndef UPDRAFT_SRC_CORE_COLOREDITOR_H_ 00002 #define UPDRAFT_SRC_CORE_COLOREDITOR_H_ 00003 00004 #include <QWidget> 00005 00006 class QPushButton; 00007 00008 namespace Updraft { 00009 namespace Core { 00010 00013 class ColorEditor: public QWidget { 00014 Q_OBJECT 00015 Q_PROPERTY(QColor color READ color WRITE setColor USER true) 00016 00017 public: 00018 explicit ColorEditor(QWidget *parent = 0); 00019 00022 const QColor &color(); 00023 00026 void setColor(const QColor &c); 00027 00028 private slots: 00031 void onClick(); 00032 00033 private: 00035 QColor c; 00036 00038 QPushButton* button; 00039 }; 00040 00041 } // End namespace Core 00042 } // End namespace Updraft 00043 00044 #endif // UPDRAFT_SRC_CORE_COLOREDITOR_H_ 00045