]> git.sesse.net Git - kdenlive/blobdiff - src/choosecolorwidget.h
Fix crash on clip cut introduced in recent coverity fix:
[kdenlive] / src / choosecolorwidget.h
index a379e5c12b4cd62be9f5d40ba318662749fe029a..24ab8cbc70004a62bbd74334529534647b9d8b0f 100644 (file)
@@ -38,11 +38,12 @@ 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(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;
@@ -54,6 +55,7 @@ private slots:
 signals:
     /** @brief Emitted whenever a different color was choosen. */
     void modified();
+    void displayMessage(const QString&, int);
 };
 
 #endif