QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński 2016-04-21 22:13:49 +02:00
parent b08a75bfb2
commit c50bc17675

View File

@ -1352,7 +1352,7 @@ MeshObjectRef makeParallelMengerSponge(int level, float x0, float y0, float z0)
void CmdMengerSponge::activated(int iMsg)
{
bool ok;
int level = QInputDialog::getInteger(Gui::getMainWindow(),
int level = QInputDialog::getInt(Gui::getMainWindow(),
QString::fromLatin1("Menger sponge"),
QString::fromLatin1("Recursion depth:"),
3, 1, 5, 1, &ok);