Silence Qt/Windows setGeometry Warning
Add the optional Qt::MSWindowsFixedSizeDialogHint parameter to all uses of the QInputDialog::getX static functions to silence a Qt/Windows debug mode warning about QWindowsWindow::setGeometry: Unable to set geometry. Increase the size of the unit calculator to eliminate the same warning. Finally, call adjustSize() on the "Unsaved Changes" dialog to silence the warning.
This commit is contained in:
@@ -729,7 +729,7 @@ void CmdPartDesignMoveFeature::activated(int iMsg)
|
||||
QString text = QInputDialog::getItem(Gui::getMainWindow(),
|
||||
qApp->translate("PartDesign_MoveFeature", "Select body"),
|
||||
qApp->translate("PartDesign_MoveFeature", "Select a body from the list"),
|
||||
items, 0, false, &ok);
|
||||
items, 0, false, &ok, Qt::MSWindowsFixedSizeDialogHint);
|
||||
if (!ok) return;
|
||||
int index = items.indexOf(text);
|
||||
if (index < 0) return;
|
||||
@@ -879,7 +879,7 @@ void CmdPartDesignMoveFeatureInTree::activated(int iMsg)
|
||||
QString text = QInputDialog::getItem(Gui::getMainWindow(),
|
||||
qApp->translate("PartDesign_MoveFeatureInTree", "Select feature"),
|
||||
qApp->translate("PartDesign_MoveFeatureInTree", "Select a feature from the list"),
|
||||
items, 0, false, &ok);
|
||||
items, 0, false, &ok, Qt::MSWindowsFixedSizeDialogHint);
|
||||
if (!ok) return;
|
||||
int index = items.indexOf(text);
|
||||
// first object is the beginning of the body
|
||||
|
||||
Reference in New Issue
Block a user