forked from qt-creator/qt-creator
All: Use Utils::SkipEmptyParts
Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "warningitem.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QAction>
|
||||
#include <QGuiApplication>
|
||||
@@ -286,7 +287,7 @@ void GraphicsScene::paste(const QPointF &targetPos)
|
||||
QString strMinPos = QLatin1String(mimeData->data("StateChartEditor/CopiedMinPos"));
|
||||
QPointF minPos(0, 0);
|
||||
if (!strMinPos.isEmpty()) {
|
||||
QStringList coords = strMinPos.split(":", QString::SkipEmptyParts);
|
||||
QStringList coords = strMinPos.split(":", Utils::SkipEmptyParts);
|
||||
if (coords.count() == 2)
|
||||
minPos = QPointF(coords[0].toDouble(), coords[1].toDouble());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user