aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmleasing/splineeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmleasing/splineeditor.cpp')
-rw-r--r--tools/qmleasing/splineeditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmleasing/splineeditor.cpp b/tools/qmleasing/splineeditor.cpp
index 69850dc7a1..c1afbbb441 100644
--- a/tools/qmleasing/splineeditor.cpp
+++ b/tools/qmleasing/splineeditor.cpp
@@ -30,11 +30,13 @@
#include "segmentproperties.h"
#include <QPainter>
+#include <QPainterPath>
#include <QMouseEvent>
#include <QContextMenuEvent>
#include <QDebug>
#include <QApplication>
#include <QVector>
+#include <QPainterPath>
const int canvasWidth = 640;
const int canvasHeight = 320;
@@ -674,7 +676,7 @@ void SplineEditor::setEasingCurve(const QString &code)
return;
if (code.startsWith(QLatin1Char('[')) && code.endsWith(QLatin1Char(']'))) {
const QStringRef cleanCode(&code, 1, code.size() - 2);
- const auto stringList = cleanCode.split(QLatin1Char(','), QString::SkipEmptyParts);
+ const auto stringList = cleanCode.split(QLatin1Char(','), Qt::SkipEmptyParts);
if (stringList.count() >= 6 && (stringList.count() % 6 == 0)) {
QVector<qreal> realList;
realList.reserve(stringList.count());