Increase about dialog height

This commit is contained in:
Jonas Kvinge
2020-05-17 16:25:18 +02:00
parent 27ac590250
commit b7494eb381

View File

@@ -96,10 +96,8 @@ About::About(QWidget *parent):QDialog(parent) {
ui_.label_title->setFont(title_font); ui_.label_title->setFont(title_font);
ui_.label_title->setText(Title); ui_.label_title->setText(Title);
ui_.label_title->adjustSize(); ui_.label_title->adjustSize();
ui_.label_text->setText(MainHtml()); ui_.label_text->setText(MainHtml());
ui_.label_text->adjustSize(); ui_.label_text->adjustSize();
ui_.text_contributors->setText(ContributorsHtml()); ui_.text_contributors->setText(ContributorsHtml());
ui_.buttonBox->button(QDialogButtonBox::Close)->setShortcut(QKeySequence::Close); ui_.buttonBox->button(QDialogButtonBox::Close)->setShortcut(QKeySequence::Close);
@@ -111,9 +109,7 @@ void About::showEvent(QShowEvent*) {
setMinimumHeight(0); setMinimumHeight(0);
setMaximumHeight(9000); setMaximumHeight(9000);
adjustSize(); adjustSize();
// Set fixed height and workaround bottom spacer taking up to much space. setFixedHeight(height() + 40);
setFixedHeight(height() - ui_.spacer_bottom->geometry().height() + 15);
adjustSize();
} }