forked from len0rd/rockbox
Theme Editor: Added targetdb download to preferences dialog, fixed Cancel button on FontDownloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27565 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e1e51f9994
commit
d92f8174a1
9 changed files with 319 additions and 7 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "preferencesdialog.h"
|
||||
#include "ui_preferencesdialog.h"
|
||||
#include "fontdownloader.h"
|
||||
#include "targetdownloader.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QColorDialog>
|
||||
|
@ -223,6 +224,8 @@ void PreferencesDialog::setupUI()
|
|||
this, SLOT(browseDB()));
|
||||
QObject::connect(ui->dlFontsButton, SIGNAL(clicked()),
|
||||
this, SLOT(dlFonts()));
|
||||
QObject::connect(ui->dlTargetButton, SIGNAL(clicked()),
|
||||
this, SLOT(dlTargetDB()));
|
||||
}
|
||||
|
||||
void PreferencesDialog::colorClicked()
|
||||
|
@ -278,6 +281,12 @@ void PreferencesDialog::dlFonts()
|
|||
dl->show();
|
||||
}
|
||||
|
||||
void PreferencesDialog::dlTargetDB()
|
||||
{
|
||||
TargetDownloader* dl = new TargetDownloader(this, ui->dbBox->text());
|
||||
dl->show();
|
||||
}
|
||||
|
||||
void PreferencesDialog::accept()
|
||||
{
|
||||
saveSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue