1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Antoine Cellerier 2007-09-15 21:58:31 +00:00
parent 58fe3ae611
commit 4bcd0fa2d4
3 changed files with 21 additions and 3 deletions

View file

@ -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) {

View file

@ -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;

View file

@ -94,8 +94,8 @@
</property>
<property name="sizeHint" >
<size>
<width>368</width>
<height>20</height>
<width>261</width>
<height>34</height>
</size>
</property>
</spacer>
@ -112,6 +112,16 @@
</property>
</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" >