summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/uninstallwindow.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-05-09 16:59:14 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-05-09 16:59:14 +0000
commit33d9cf091a62cb217987092d03bf110c35444845 (patch)
tree4ee6be3018e0b71c38d4857f86ad17a08668afdd /rbutil/rbutilqt/uninstallwindow.cpp
parent8e63df19cbeee2de9470049feae8ae0f9c5a339e (diff)
downloadrockbox-33d9cf091a62cb217987092d03bf110c35444845.tar.gz
rockbox-33d9cf091a62cb217987092d03bf110c35444845.tar.bz2
rockbox-33d9cf091a62cb217987092d03bf110c35444845.zip
rbutil: make RbSettings a static class. (FS#10183 with improvements)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20890 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/uninstallwindow.cpp')
-rw-r--r--rbutil/rbutilqt/uninstallwindow.cpp41
1 files changed, 19 insertions, 22 deletions
diff --git a/rbutil/rbutilqt/uninstallwindow.cpp b/rbutil/rbutilqt/uninstallwindow.cpp
index 7d70f46170..4abfe93b1e 100644
--- a/rbutil/rbutilqt/uninstallwindow.cpp
+++ b/rbutil/rbutilqt/uninstallwindow.cpp
@@ -19,7 +19,7 @@
#include "uninstallwindow.h"
#include "ui_uninstallfrm.h"
-
+#include "rbsettings.h"
UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent)
{
@@ -27,6 +27,24 @@ UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent)
ui.UninstalllistWidget->setAlternatingRowColors(true);
connect(ui.UninstalllistWidget,SIGNAL(itemSelectionChanged()),this,SLOT(selectionChanged()));
connect(ui.CompleteRadioBtn,SIGNAL(toggled(bool)),this,SLOT(UninstallMethodChanged(bool)));
+
+ QString mountpoint = RbSettings::value(RbSettings::Mountpoint).toString();
+
+ uninstaller = new Uninstaller(this,mountpoint);
+
+ // disable smart uninstall, if not possible
+ if(!uninstaller->uninstallPossible())
+ {
+ ui.smartRadioButton->setEnabled(false);
+ ui.smartGroupBox->setEnabled(false);
+ ui.CompleteRadioBtn->setChecked(true);
+ }
+ else // fill in installed parts
+ {
+ ui.smartRadioButton->setChecked(true);
+ ui.UninstalllistWidget->addItems(uninstaller->getAllSections());
+ }
+
}
@@ -68,24 +86,3 @@ void UninstallWindow::UninstallMethodChanged(bool complete)
ui.smartGroupBox->setEnabled(true);
}
-
-void UninstallWindow::setSettings(RbSettings *sett)
-{
- settings = sett;
-
- QString mountpoint = settings->value(RbSettings::Mountpoint).toString();
- uninstaller = new Uninstaller(this,mountpoint);
-
- // disable smart uninstall, if not possible
- if(!uninstaller->uninstallPossible())
- {
- ui.smartRadioButton->setEnabled(false);
- ui.smartGroupBox->setEnabled(false);
- ui.CompleteRadioBtn->setChecked(true);
- }
- else // fill in installed parts
- {
- ui.smartRadioButton->setChecked(true);
- ui.UninstalllistWidget->addItems(uninstaller->getAllSections());
- }
-}