Merge pull request #7035 from spycrab/qt_macos_info_width

Qt/macOS: Fix InfoWidget fields being too narrow
This commit is contained in:
spycrab 2018-05-30 19:13:08 +02:00 committed by GitHub
commit d1db841ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,8 @@ QGroupBox* InfoWidget::CreateISODetails()
QGroupBox* group = new QGroupBox(tr("ISO Details"));
QFormLayout* layout = new QFormLayout;
layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
QLineEdit* file_path = CreateValueDisplay(
QStringLiteral("%1 (%2)")
.arg(QDir::toNativeSeparators(QString::fromStdString(m_game.GetFilePath())))
@ -98,6 +100,8 @@ QGroupBox* InfoWidget::CreateBannerDetails()
QGroupBox* group = new QGroupBox(tr("Banner Details"));
QFormLayout* layout = new QFormLayout;
layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
m_name = CreateValueDisplay();
m_maker = CreateValueDisplay();
m_description = new QTextEdit();