summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h')
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h
index 944d295667..56b6acaf3c 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h
+++ b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.h
@@ -53,7 +53,7 @@ public:
QHash<int, QByteArray> roleNames() const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- Q_INVOKABLE void addStop(qreal position, const QColor &color);
+ Q_INVOKABLE int addStop(qreal position, const QColor &color);
Q_INVOKABLE void addGradient();
Q_INVOKABLE void setColor(int index, const QColor &color);