X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fchoosecolorwidget.h;h=dc04d22fe219e7d8d57ab3c3d3e8f0c4d29b527b;hb=29ceabd2afc227e0fb8b586c567eeaf7921b542e;hp=303c4a4e1aff52fa30f80025e8cc84690e5d37c2;hpb=4732b64d8d1a47e654cb127696b7039ce10a0a65;p=kdenlive diff --git a/src/choosecolorwidget.h b/src/choosecolorwidget.h index 303c4a4e..dc04d22f 100644 --- a/src/choosecolorwidget.h +++ b/src/choosecolorwidget.h @@ -21,7 +21,6 @@ #ifndef CHOOSECOLORWIDGET_H #define CHOOSECOLORWIDGET_H -#include #include class KColorButton; @@ -40,17 +39,17 @@ public: * @param text (optional) What the color will be used for * @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); + explicit ChooseColorWidget(const QString &text = QString(), const QString &color = "0xffffffff", bool alphaEnabled = false, QWidget* parent = 0); /** @brief Gets the choosen color. */ - QString 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. */