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:
@@ -96,7 +96,7 @@ bool ViewProviderLux::setEdit(int ModNum)
|
||||
int current = items.indexOf(cfi.absoluteFilePath());
|
||||
|
||||
bool ok;
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("LuxRender template"), tr("Select a LuxRender template"), items, current, false, &ok);
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("LuxRender template"), tr("Select a LuxRender template"), items, current, false, &ok, Qt::MSWindowsFixedSizeDialogHint);
|
||||
if (ok) {
|
||||
App::Document* doc = getObject()->getDocument();
|
||||
doc->openTransaction("Edit LuxRender project");
|
||||
@@ -175,7 +175,7 @@ bool ViewProviderPovray::setEdit(int ModNum)
|
||||
int current = items.indexOf(cfi.absoluteFilePath());
|
||||
|
||||
bool ok;
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("Povray template"), tr("Select a Povray template"), items, current, false, &ok);
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("Povray template"), tr("Select a Povray template"), items, current, false, &ok, Qt::MSWindowsFixedSizeDialogHint);
|
||||
if (ok) {
|
||||
App::Document* doc = getObject()->getDocument();
|
||||
doc->openTransaction("Edit Povray project");
|
||||
|
||||
Reference in New Issue
Block a user