]> git.sesse.net Git - kdenlive/blobdiff - src/choosecolorwidget.h
Const'ref
[kdenlive] / src / choosecolorwidget.h
index 24ab8cbc70004a62bbd74334529534647b9d8b0f..dc04d22fe219e7d8d57ab3c3d3e8f0c4d29b527b 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef CHOOSECOLORWIDGET_H
 #define CHOOSECOLORWIDGET_H
 
-#include <QtCore>
 #include <QWidget>
 
 class KColorButton;
@@ -40,22 +39,24 @@ 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. */
     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