QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
This change is Qt4/Qt5 neutral.
This commit is contained in:
parent
e6379ea636
commit
99ca18f541
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user