summaryrefslogtreecommitdiffstats
path: root/src/sdk
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2012-10-29 14:46:54 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2012-10-30 10:02:56 +0100
commitdf3f9838f58b8bca182539eb392ba128e0c511c0 (patch)
treecc80ea817b54474f2b8a4e1850b3eb1a35dc4bf0 /src/sdk
parenta4b9ebec9f2d9bd76be025478ecdae51bba523d2 (diff)
Add setting to be able to hide the repository settings tab.
Change-Id: I5ab5ac7352e06f0b89ec8e59e6cdfcc5b7be81da Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/sdk')
-rw-r--r--src/sdk/settingsdialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sdk/settingsdialog.cpp b/src/sdk/settingsdialog.cpp
index 9f705b41a..0e237165c 100644
--- a/src/sdk/settingsdialog.cpp
+++ b/src/sdk/settingsdialog.cpp
@@ -361,6 +361,12 @@ SettingsDialog::SettingsDialog(QInstaller::PackageManagerCore *core, QWidget *pa
m_ui->m_useTmpRepositories->setChecked(settings.hasReplacementRepos());
m_ui->m_useTmpRepositories->setEnabled(settings.hasReplacementRepos());
m_ui->m_repositoriesView->setCurrentItem(m_rootItems.at(settings.hasReplacementRepos()));
+
+ if (!settings.repositorySettingsPageVisible()) {
+ // workaround a inconvenience that the page won't hide inside a QTabWidget
+ m_ui->m_repositories->setParent(this);
+ m_ui->m_repositories->setVisible(settings.repositorySettingsPageVisible());
+ }
}
void SettingsDialog::accept()