X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fchoosecolorwidget.h;h=ad1788c0348873cfee8d40cf6aec44f88ace713d;hb=4fba89810f9bc0bbf7f3e1c286a1d868d88918f3;hp=deac2b818b9039c06195d1c87517e6694c3e0bc8;hpb=a1af369434090ceb994ec82249c099e1673e4a18;p=kdenlive diff --git a/src/choosecolorwidget.h b/src/choosecolorwidget.h index deac2b81..ad1788c0 100644 --- a/src/choosecolorwidget.h +++ b/src/choosecolorwidget.h @@ -38,23 +38,26 @@ class ChooseColorWidget : public QWidget 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(const QString &text = QString(), const QString &color = "0xffffffff", bool alphaEnabled = false, QWidget* parent = 0); /** @brief Gets the choosen color. */ - QColor getColor(); + QString getColor() const; private: KColorButton *m_button; private slots: /** @brief Updates the different color choosing options to have all selected @param color. */ - void setColor(QColor color); + void setColor(const QColor &color); signals: /** @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