summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/installthemes.cpp
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-15 21:58:31 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-15 21:58:31 +0000
commit4bcd0fa2d4a64b6c90c5d07b35001e967bd6ec60 (patch)
treec1b540162c2ac8e879ee07b0ac342e553999cc23 /rbutil/rbutilqt/installthemes.cpp
parent58fe3ae611a5f4a0986de86bbfa3145bad884d5d (diff)
downloadrockbox-4bcd0fa2d4a64b6c90c5d07b35001e967bd6ec60.tar.gz
rockbox-4bcd0fa2d4a64b6c90c5d07b35001e967bd6ec60.zip
Add an "Install All" button to the themes installation dialog.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14715 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installthemes.cpp')
-rw-r--r--rbutil/rbutilqt/installthemes.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/installthemes.cpp b/rbutil/rbutilqt/installthemes.cpp
index 15a74f915c..9c98ede32a 100644
--- a/rbutil/rbutilqt/installthemes.cpp
+++ b/rbutil/rbutilqt/installthemes.cpp
@@ -35,6 +35,7 @@ ThemesInstallWindow::ThemesInstallWindow(QWidget *parent) : QDialog(parent)
35 35
36 connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close())); 36 connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
37 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept())); 37 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
38 connect(ui.buttonOkAll, SIGNAL(clicked()), this, SLOT(acceptAll()));
38} 39}
39 40
40ThemesInstallWindow::~ThemesInstallWindow() 41ThemesInstallWindow::~ThemesInstallWindow()
@@ -271,6 +272,12 @@ void ThemesInstallWindow::setProxy(QUrl p)
271} 272}
272 273
273 274
275void ThemesInstallWindow::acceptAll()
276{
277 ui.listThemes->selectAll();
278 accept();
279}
280
274void ThemesInstallWindow::accept() 281void ThemesInstallWindow::accept()
275{ 282{
276 if(ui.listThemes->selectedItems().size() == 0) { 283 if(ui.listThemes->selectedItems().size() == 0) {