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:
parent
58fe3ae611
commit
4bcd0fa2d4
3 changed files with 21 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ ThemesInstallWindow::ThemesInstallWindow(QWidget *parent) : QDialog(parent)
|
||||||
|
|
||||||
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
|
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
|
||||||
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
|
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
|
||||||
|
connect(ui.buttonOkAll, SIGNAL(clicked()), this, SLOT(acceptAll()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ThemesInstallWindow::~ThemesInstallWindow()
|
ThemesInstallWindow::~ThemesInstallWindow()
|
||||||
|
|
@ -271,6 +272,12 @@ void ThemesInstallWindow::setProxy(QUrl p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ThemesInstallWindow::acceptAll()
|
||||||
|
{
|
||||||
|
ui.listThemes->selectAll();
|
||||||
|
accept();
|
||||||
|
}
|
||||||
|
|
||||||
void ThemesInstallWindow::accept()
|
void ThemesInstallWindow::accept()
|
||||||
{
|
{
|
||||||
if(ui.listThemes->selectedItems().size() == 0) {
|
if(ui.listThemes->selectedItems().size() == 0) {
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,10 @@ class ThemesInstallWindow : public QDialog
|
||||||
void setProxy(QUrl);
|
void setProxy(QUrl);
|
||||||
void downloadInfo(void);
|
void downloadInfo(void);
|
||||||
void show(void);
|
void show(void);
|
||||||
void accept(void);
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
void accept(void);
|
||||||
|
void acceptAll(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ThemeInstallFrm ui;
|
Ui::ThemeInstallFrm ui;
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,8 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>368</width>
|
<width>261</width>
|
||||||
<height>20</height>
|
<height>34</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
|
|
@ -112,6 +112,16 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="buttonOkAll" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Install &All</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon" >
|
||||||
|
<iconset resource="rbutilqt.qrc" >:/icons/icons/go-next.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="buttonCancel" >
|
<widget class="QPushButton" name="buttonCancel" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue