Change the minimum width for modals
This commit is contained in:
parent
9038c950ae
commit
8f89ad15f7
5 changed files with 8 additions and 10 deletions
|
|
@ -175,8 +175,7 @@ UserProfile::UserProfile(QWidget *parent)
|
|||
largeFont.setPointSizeF(largeFont.pointSizeF() * 1.5);
|
||||
|
||||
setMinimumWidth(
|
||||
std::max(devices_->sizeHint().width() + 4 * WIDGET_MARGIN,
|
||||
QFontMetrics(largeFont).averageCharWidth() * 30 - 2 * WIDGET_MARGIN));
|
||||
std::max(devices_->sizeHint().width() + 4 * WIDGET_MARGIN, conf::window::minModalWidth));
|
||||
setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
|
||||
|
||||
vlayout->setSpacing(WIDGET_SPACING);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue