refs #902, refs #887, avoid oversize combobox

This commit is contained in:
Klaus Basan
2017-04-03 23:52:32 +02:00
committed by Mathew Sutcliffe
parent 0f57385325
commit 5ab1ae7193
3 changed files with 77 additions and 66 deletions

View File

@@ -226,6 +226,13 @@ namespace BlackGui
ui->rb_Settings->setEnabled(allow);
}
void CCopyConfigurationComponent::resizeEvent(QResizeEvent *event)
{
const int w = 0.45 * this->width();
ui->cb_OtherVersions->setMaximumWidth(w);
QFrame::resizeEvent(event);
}
void CCopyConfigurationComponent::currentVersionChanged(const QString &text)
{
Q_UNUSED(text);