diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index eb844f02f..f70768b44 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -259,23 +259,20 @@ void AddNewTorrentDialog::showAdvancedSettings(bool show) if (show) { ui->adv_button->setText(QString::fromUtf8(C_UP)); ui->settings_group->setVisible(true); - ui->info_group->setVisible(true); + ui->infoGroup->setVisible(true); if (m_hasMetadata && (m_torrentInfo.filesCount() > 1)) { ui->content_tree->setVisible(true); - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); } else { ui->content_tree->setVisible(false); - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); } static_cast(layout())->insertWidget(layout()->indexOf(ui->never_show_cb) + 1, ui->adv_button); } else { ui->adv_button->setText(QString::fromUtf8(C_DOWN)); ui->settings_group->setVisible(false); - ui->info_group->setVisible(false); + ui->infoGroup->setVisible(false); ui->buttonsHLayout->insertWidget(0, layout()->takeAt(layout()->indexOf(ui->never_show_cb) + 1)->widget()); - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); } relayout(); } diff --git a/src/gui/addnewtorrentdialog.ui b/src/gui/addnewtorrentdialog.ui index f7c46efcb..ce727e72a 100644 --- a/src/gui/addnewtorrentdialog.ui +++ b/src/gui/addnewtorrentdialog.ui @@ -10,23 +10,11 @@ 590 - - - 400 - 0 - - - - - 800 - 16777215 - - - + - Save as + Save at @@ -34,21 +22,18 @@ - + 0 0 + + QComboBox::AdjustToMinimumContentsLength + - - - 0 - 0 - - Browse... @@ -88,28 +73,37 @@ Torrent settings - - - + + + - Start torrent - - - true + Set as default label - - - + + + + + + 0 + 0 + + - Label: + Set label: - + + + + 140 + 0 + + true @@ -120,6 +114,16 @@ + + + + Start torrent + + + true + + + @@ -127,24 +131,43 @@ - - - - Set as default label + + + + Qt::Horizontal - + + + 0 + 0 + + + + + + + + Qt::Horizontal + + + + 0 + 0 + + + - + - Torrent Information + Torrent information - + - + @@ -153,27 +176,23 @@ - - - xx GB (xx GB available) - - + - + Comment: + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + - + Qt::RichText - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - true @@ -185,28 +204,24 @@ - + Date: - - - - 02/03/2012 20:30 - - + + - + - Info Hash: + Hash: - + Qt::TextSelectableByMouse @@ -231,12 +246,25 @@ + + + + Qt::Vertical + + + + 0 + 0 + + + + - + 0 0 @@ -256,33 +284,10 @@ - - - true - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - + - - Qt::Horizontal - QDialogButtonBox::Cancel|QDialogButtonBox::Ok