Commit cc155c62 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed deprecation warning

parent c44e7262
......@@ -220,7 +220,12 @@ void OMPropertyModel<MeshT>::saveProperty()
template<typename MeshT>
bool OMPropertyModel<MeshT>::parseHeader(QString header, PropertyVisualizer*& propVis, unsigned int &n)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QStringList headerParts = header.split(tr(", "), QString::SkipEmptyParts );
#else
QStringList headerParts = header.split(tr(", "), Qt::SkipEmptyParts );
#endif
int headerVersion = headerParts[0].toUInt();
if (headerVersion == 1)
{
......
......@@ -212,7 +212,12 @@ void OVMPropertyModel<MeshT>::mouseEvent(QMouseEvent* _event)
template <typename MeshT>
bool OVMPropertyModel<MeshT>::parseHeader(QString header, PropertyVisualizer*& propVis, unsigned int& n)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QStringList headerParts = header.split(tr(", "), QString::SkipEmptyParts );
#else
QStringList headerParts = header.split(tr(", "), Qt::SkipEmptyParts );
#endif
int headerVersion = headerParts[0].toUInt();
if (headerVersion == 1)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment