Updates will be applied - 3:30pm EDT (UTC -400). No downtime expected.

Commit 734aa411 authored by Alvaro Sanchez's avatar Alvaro Sanchez

Fixes file combo-box resizing in SimBuilderDialog.

parent 2982552f
......@@ -318,6 +318,7 @@ void qtBaseView::makeTopLevel()
this->m_ScrollArea = new QScrollArea(this->parentWidget());
this->m_ScrollArea->setWidgetResizable(true);
this->m_ScrollArea->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
this->m_ScrollArea->setFrameShape(QFrame::NoFrame);
this->m_ScrollArea->setObjectName("topLevelScrollArea");
parentlayout->addWidget(this->m_ScrollArea);
......
......@@ -229,7 +229,15 @@ QWidget* qtFileItem::createFileBrowseWidget(int elementIdx)
if (lineEdit)
lineEdit->setAlignment(Qt::AlignRight);
else if (fileCombo)
{
fileCombo->lineEdit()->setAlignment(Qt::AlignRight);
fileCombo->setMinimumContentsLength(10);
// http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop
// Recommends using QComboBox::AdjustToContents, but that does not seem to
// work on Linux.
fileCombo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
}
frame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
fileTextWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment