Gui: Respect both content size and minimum width for buttons

This is a hacky fix for https://github.com/FreeCAD/FreeCAD/issues/23607

Basically after widget is shown or polished we enforce it's minimum size to at
least cover the minimum size hint - something that QSS ignores if min-width is
specified.
This commit is contained in:
Kacper Donat
2025-12-06 22:45:53 +01:00
committed by Chris Hennes
parent 16032ae34c
commit aefd2592a8
9 changed files with 150 additions and 15 deletions

View File

@@ -275,10 +275,7 @@ void DlgSettingsGeneral::saveSettings()
hGrp->SetBool("TiledBackground", ui->tiledBackground->isChecked());
if (themeChanged) {
auto qtStyle = QString::fromStdString(hGrp->GetASCII("QtStyle"));
saveThemes();
qApp->setStyle(qtStyle);
}
}