summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/uninstallwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/uninstallwindow.cpp')
-rw-r--r--rbutil/rbutilqt/uninstallwindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/rbutil/rbutilqt/uninstallwindow.cpp b/rbutil/rbutilqt/uninstallwindow.cpp
index 5dcfbb894b..61ca8410be 100644
--- a/rbutil/rbutilqt/uninstallwindow.cpp
+++ b/rbutil/rbutilqt/uninstallwindow.cpp
@@ -24,7 +24,7 @@
24UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent) 24UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent)
25{ 25{
26 ui.setupUi(this); 26 ui.setupUi(this);
27 ui.UninstalllistWidget->setAlternatingRowColors(true); 27 ui.UninstalllistWidget->setAlternatingRowColors(true);
28 connect(ui.UninstalllistWidget,SIGNAL(itemSelectionChanged()),this,SLOT(selectionChanged())); 28 connect(ui.UninstalllistWidget,SIGNAL(itemSelectionChanged()),this,SLOT(selectionChanged()));
29 connect(ui.CompleteRadioBtn,SIGNAL(toggled(bool)),this,SLOT(UninstallMethodChanged(bool))); 29 connect(ui.CompleteRadioBtn,SIGNAL(toggled(bool)),this,SLOT(UninstallMethodChanged(bool)));
30} 30}
@@ -43,7 +43,7 @@ void UninstallWindow::accept()
43 { 43 {
44 uninstaller->uninstall(logger); 44 uninstaller->uninstall(logger);
45 } 45 }
46 connect(logger,SIGNAL(closed()),this,SLOT(close())); 46 connect(logger,SIGNAL(closed()),this,SLOT(close()));
47} 47}
48 48
49 49
@@ -55,7 +55,7 @@ void UninstallWindow::selectionChanged()
55 { 55 {
56 seletedStrings << itemlist.at(i)->text(); 56 seletedStrings << itemlist.at(i)->text();
57 } 57 }
58 58
59 uninstaller->setSections(seletedStrings); 59 uninstaller->setSections(seletedStrings);
60} 60}
61 61
@@ -64,7 +64,7 @@ void UninstallWindow::UninstallMethodChanged(bool complete)
64 if(complete) 64 if(complete)
65 ui.smartGroupBox->setEnabled(false); 65 ui.smartGroupBox->setEnabled(false);
66 else 66 else
67 ui.smartGroupBox->setEnabled(true); 67 ui.smartGroupBox->setEnabled(true);
68} 68}
69 69
70void UninstallWindow::setDeviceSettings(QSettings *dev) 70void UninstallWindow::setDeviceSettings(QSettings *dev)
@@ -77,12 +77,12 @@ void UninstallWindow::setDeviceSettings(QSettings *dev)
77void UninstallWindow::setUserSettings(QSettings *user) 77void UninstallWindow::setUserSettings(QSettings *user)
78{ 78{
79 userSettings = user; 79 userSettings = user;
80 80
81 QString mountpoint =userSettings->value("mountpoint").toString(); 81 QString mountpoint =userSettings->value("mountpoint").toString();
82 uninstaller = new Uninstaller(this,mountpoint); 82 uninstaller = new Uninstaller(this,mountpoint);
83 83
84 // disable smart uninstall, if not possible 84 // disable smart uninstall, if not possible
85 if(!uninstaller->uninstallPossible()) 85 if(!uninstaller->uninstallPossible())
86 { 86 {
87 ui.smartRadioButton->setEnabled(false); 87 ui.smartRadioButton->setEnabled(false);
88 ui.smartGroupBox->setEnabled(false); 88 ui.smartGroupBox->setEnabled(false);
@@ -90,7 +90,7 @@ void UninstallWindow::setUserSettings(QSettings *user)
90 } 90 }
91 else // fill in installed parts 91 else // fill in installed parts
92 { 92 {
93 ui.smartRadioButton->setChecked(true); 93 ui.smartRadioButton->setChecked(true);
94 ui.UninstalllistWidget->addItems(uninstaller->getAllSections()); 94 ui.UninstalllistWidget->addItems(uninstaller->getAllSections());
95 } 95 }
96} 96}