mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Set parent object for advancedsettings
Remove borders Resize column size correctly
This commit is contained in:
parent
29c94d2fb5
commit
a8b394752e
4 changed files with 28 additions and 59 deletions
|
@ -279,10 +279,8 @@ options_imp::options_imp(QWidget *parent)
|
|||
// Tab selection mechanism
|
||||
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
|
||||
// Load Advanced settings
|
||||
QVBoxLayout *adv_layout = new QVBoxLayout();
|
||||
advancedSettings = new AdvancedSettings();
|
||||
adv_layout->addWidget(advancedSettings);
|
||||
scrollArea_advanced->setLayout(adv_layout);
|
||||
advancedSettings = new AdvancedSettings(tabAdvancedPage);
|
||||
advPageLayout->addWidget(advancedSettings);
|
||||
connect(advancedSettings, SIGNAL(settingsChanged()), this, SLOT(enableApplyButton()));
|
||||
|
||||
// Adapt size
|
||||
|
@ -312,8 +310,6 @@ options_imp::~options_imp()
|
|||
foreach (const QString &path, addedScanDirs)
|
||||
ScanFoldersModel::instance()->removePath(path);
|
||||
ScanFoldersModel::instance()->configure(); // reloads "removed" paths
|
||||
delete scrollArea_advanced->layout();
|
||||
delete advancedSettings;
|
||||
}
|
||||
|
||||
void options_imp::changePage(QListWidgetItem *current, QListWidgetItem *previous)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue