public:
/** @brief Sets up the widget.
* @param text (optional) What the color will be used for
- * @param color (optional) initial color */
- ChooseColorWidget(QString text = QString(), QColor color = QColor(), QWidget* parent = 0);
+ * @param color (optional) initial color
+ * @param alphaEnabled (optional) Should transparent colors be enabled */
+ explicit ChooseColorWidget(QString text = QString(), QString color = "0xffffffff", bool alphaEnabled = false, QWidget* parent = 0);
/** @brief Gets the choosen color. */
- QColor getColor();
+ QString getColor();
private:
KColorButton *m_button;
/** @brief Emitted whenever a different color was choosen. */
void modified();
void displayMessage(const QString&, int);
+ /** @brief When user wants to pick a color, it's better to disable filter so we get proper color values. */
+ void disableCurrentFilter(bool);
};
#endif