|
|
@ -279,10 +279,8 @@ options_imp::options_imp(QWidget *parent) |
|
|
|
// Tab selection mechanism
|
|
|
|
// Tab selection mechanism
|
|
|
|
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*))); |
|
|
|
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*))); |
|
|
|
// Load Advanced settings
|
|
|
|
// Load Advanced settings
|
|
|
|
QVBoxLayout *adv_layout = new QVBoxLayout(); |
|
|
|
advancedSettings = new AdvancedSettings(tabAdvancedPage); |
|
|
|
advancedSettings = new AdvancedSettings(); |
|
|
|
advPageLayout->addWidget(advancedSettings); |
|
|
|
adv_layout->addWidget(advancedSettings); |
|
|
|
|
|
|
|
scrollArea_advanced->setLayout(adv_layout); |
|
|
|
|
|
|
|
connect(advancedSettings, SIGNAL(settingsChanged()), this, SLOT(enableApplyButton())); |
|
|
|
connect(advancedSettings, SIGNAL(settingsChanged()), this, SLOT(enableApplyButton())); |
|
|
|
|
|
|
|
|
|
|
|
// Adapt size
|
|
|
|
// Adapt size
|
|
|
@ -312,8 +310,6 @@ options_imp::~options_imp() |
|
|
|
foreach (const QString &path, addedScanDirs) |
|
|
|
foreach (const QString &path, addedScanDirs) |
|
|
|
ScanFoldersModel::instance()->removePath(path); |
|
|
|
ScanFoldersModel::instance()->removePath(path); |
|
|
|
ScanFoldersModel::instance()->configure(); // reloads "removed" paths
|
|
|
|
ScanFoldersModel::instance()->configure(); // reloads "removed" paths
|
|
|
|
delete scrollArea_advanced->layout(); |
|
|
|
|
|
|
|
delete advancedSettings; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void options_imp::changePage(QListWidgetItem *current, QListWidgetItem *previous) |
|
|
|
void options_imp::changePage(QListWidgetItem *current, QListWidgetItem *previous) |
|
|
|