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

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2015-12-21 19:17:19 +01:00
committed by wmayer
parent e6379ea636
commit 99ca18f541
2 changed files with 3 additions and 3 deletions

View File

@@ -1540,7 +1540,7 @@ void CmdMeshFillupHoles::activated(int iMsg)
{
std::vector<App::DocumentObject*> meshes = getSelection().getObjectsOfType(Mesh::Feature::getClassTypeId());
bool ok;
int FillupHolesOfLength = QInputDialog::getInteger(Gui::getMainWindow(), QObject::tr("Fill holes"),
int FillupHolesOfLength = QInputDialog::getInt(Gui::getMainWindow(), QObject::tr("Fill holes"),
QObject::tr("Fill holes with maximum number of edges:"), 3, 3, 10000, 1, &ok);
if (!ok) return;
openCommand("Fill up holes");