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

@ -662,7 +662,7 @@ void ParameterValue::onCreateIntItem()
}
}
int val = QInputDialog::getInteger(this, QObject::tr("New integer item"), QObject::tr("Enter your number:"),
int val = QInputDialog::getInt(this, QObject::tr("New integer item"), QObject::tr("Enter your number:"),
0, -2147483647, 2147483647, 1, &ok);
if ( ok )
@ -946,7 +946,7 @@ ParameterInt::~ParameterInt()
void ParameterInt::changeValue()
{
bool ok;
int num = QInputDialog::getInteger(treeWidget(), QObject::tr("Change value"), QObject::tr("Enter your number:"),
int num = QInputDialog::getInt(treeWidget(), QObject::tr("Change value"), QObject::tr("Enter your number:"),
text(2).toInt(), -2147483647, 2147483647, 1, &ok);
if ( ok )
{

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");