QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
d5c074f80d
commit
cd2db00f22
@@ -345,7 +345,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action)
|
||||
,pp->getPoint()[1]
|
||||
,pp->getPoint()[2]);
|
||||
|
||||
getMainWindow()->showMessage(QString::fromAscii(buf),3000);
|
||||
getMainWindow()->showMessage(QString::fromLatin1(buf),3000);
|
||||
}
|
||||
else { // picked point
|
||||
if (highlighted) {
|
||||
@@ -404,7 +404,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action)
|
||||
,pp->getPoint()[1]
|
||||
,pp->getPoint()[2]);
|
||||
|
||||
getMainWindow()->showMessage(QString::fromAscii(buf),3000);
|
||||
getMainWindow()->showMessage(QString::fromLatin1(buf),3000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -438,7 +438,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action)
|
||||
,pp->getPoint()[1]
|
||||
,pp->getPoint()[2]);
|
||||
|
||||
getMainWindow()->showMessage(QString::fromAscii(buf),3000);
|
||||
getMainWindow()->showMessage(QString::fromLatin1(buf),3000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -569,7 +569,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action)
|
||||
,pp->getPoint()[1]
|
||||
,pp->getPoint()[2]);
|
||||
|
||||
getMainWindow()->showMessage(QString::fromAscii(buf),3000);
|
||||
getMainWindow()->showMessage(QString::fromLatin1(buf),3000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -603,7 +603,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action)
|
||||
,pp->getPoint()[1]
|
||||
,pp->getPoint()[2]);
|
||||
|
||||
getMainWindow()->showMessage(QString::fromAscii(buf),3000);
|
||||
getMainWindow()->showMessage(QString::fromLatin1(buf),3000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user