From: Michal MalĂ˝ Date: Fri, 17 Apr 2015 19:13:16 +0000 (+0200) Subject: - Simplify layout of Export Raw Data dialog X-Git-Tag: 0.5c~7 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=807de7f4fd29053beab66c167320b6f14e7278a6;p=anyanka.git - Simplify layout of Export Raw Data dialog - Set resizing policy of formats combobox and available signals list to grow with content --- diff --git a/gui/exportrawdatadialog.cpp b/gui/exportrawdatadialog.cpp index 34618b7..983eda5 100644 --- a/gui/exportrawdatadialog.cpp +++ b/gui/exportrawdatadialog.cpp @@ -38,6 +38,8 @@ ExportRawDataDialog::ExportRawDataDialog(const QStringList& supportedFormats, QW ui->qcbox_formats->addItems(supportedFormats); ui->qlv_availableSignals->setModel(&m_availableSignals); + ui->qcbox_formats->setSizeAdjustPolicy(QComboBox::AdjustToContents); + ui->qlv_availableSignals->setSizeAdjustPolicy(QListView::AdjustToContents); connect(ui->qpb_browse, SIGNAL(clicked()), this, SLOT(onBrowseClicked())); connect(ui->qpb_ok, SIGNAL(clicked()), this, SLOT(accept())); diff --git a/gui/exportrawdatadialog.ui b/gui/exportrawdatadialog.ui index 27cba6c..6763b80 100644 --- a/gui/exportrawdatadialog.ui +++ b/gui/exportrawdatadialog.ui @@ -7,11 +7,11 @@ 0 0 400 - 344 + 370 - + 0 0 @@ -19,20 +19,50 @@ Export raw data - + + true + + - - + + + + + + 0 + 0 + + + + + Browse - + + + + + + + + + 0 + 0 + + + + Format: + + + + - + 0 0 @@ -51,23 +81,30 @@ - - + + + + + + QLayout::SetDefaultConstraint + + + - + 0 0 - Format: + Available signals: - - + + - + 0 0 @@ -77,35 +114,7 @@ - - - - 0 - 0 - - - - - - - - 0 - 0 - - - - Available signals: - - - - - - - - - - - +