summaryrefslogtreecommitdiffstats
path: root/rbutil
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
parent58fe3ae611a5f4a0986de86bbfa3145bad884d5d (diff)
downloadrockbox-4bcd0fa2d4a64b6c90c5d07b35001e967bd6ec60.tar.gz
rockbox-4bcd0fa2d4a64b6c90c5d07b35001e967bd6ec60.tar.bz2
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')
-rw-r--r--rbutil/rbutilqt/installthemes.cpp7
-rw-r--r--rbutil/rbutilqt/installthemes.h3
-rw-r--r--rbutil/rbutilqt/installthemesfrm.ui14
3 files changed, 21 insertions, 3 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)
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
+ connect(ui.buttonOkAll, SIGNAL(clicked()), this, SLOT(acceptAll()));
}
ThemesInstallWindow::~ThemesInstallWindow()
@@ -271,6 +272,12 @@ void ThemesInstallWindow::setProxy(QUrl p)
}
+void ThemesInstallWindow::acceptAll()
+{
+ ui.listThemes->selectAll();
+ accept();
+}
+
void ThemesInstallWindow::accept()
{
if(ui.listThemes->selectedItems().size() == 0) {
diff --git a/rbutil/rbutilqt/installthemes.h b/rbutil/rbutilqt/installthemes.h
index 0d24d5cae2..12c0f6a2d1 100644
--- a/rbutil/rbutilqt/installthemes.h
+++ b/rbutil/rbutilqt/installthemes.h
@@ -40,9 +40,10 @@ class ThemesInstallWindow : public QDialog
void setProxy(QUrl);
void downloadInfo(void);
void show(void);
- void accept(void);
public slots:
+ void accept(void);
+ void acceptAll(void);
private:
Ui::ThemeInstallFrm ui;
diff --git a/rbutil/rbutilqt/installthemesfrm.ui b/rbutil/rbutilqt/installthemesfrm.ui
index 8a6980e885..c11f4f10f2 100644
--- a/rbutil/rbutilqt/installthemesfrm.ui
+++ b/rbutil/rbutilqt/installthemesfrm.ui
@@ -94,8 +94,8 @@
</property>
<property name="sizeHint" >
<size>
- <width>368</width>
- <height>20</height>
+ <width>261</width>
+ <height>34</height>
</size>
</property>
</spacer>
@@ -113,6 +113,16 @@
</widget>
</item>
<item>
+ <widget class="QPushButton" name="buttonOkAll" >
+ <property name="text" >
+ <string>Install &amp;All</string>
+ </property>
+ <property name="icon" >
+ <iconset resource="rbutilqt.qrc" >:/icons/icons/go-next.png</iconset>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
<string>&amp;Cancel</string>