diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-25 21:59:35 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-25 21:59:35 +0000 |
commit | d92f8174a1f838684645267e87b3afebfc48143f (patch) | |
tree | fe705adf4815eb38f7646ea7a0cb0a0841c74b43 /utils/themeeditor/gui/preferencesdialog.cpp | |
parent | e1e51f99949f2a2967210342fcea6e8ae8495e0b (diff) | |
download | rockbox-d92f8174a1f838684645267e87b3afebfc48143f.tar.gz rockbox-d92f8174a1f838684645267e87b3afebfc48143f.zip |
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
Diffstat (limited to 'utils/themeeditor/gui/preferencesdialog.cpp')
-rw-r--r-- | utils/themeeditor/gui/preferencesdialog.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/preferencesdialog.cpp b/utils/themeeditor/gui/preferencesdialog.cpp index d28b21345d..34ee8c9b22 100644 --- a/utils/themeeditor/gui/preferencesdialog.cpp +++ b/utils/themeeditor/gui/preferencesdialog.cpp | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "preferencesdialog.h" | 22 | #include "preferencesdialog.h" |
23 | #include "ui_preferencesdialog.h" | 23 | #include "ui_preferencesdialog.h" |
24 | #include "fontdownloader.h" | 24 | #include "fontdownloader.h" |
25 | #include "targetdownloader.h" | ||
25 | 26 | ||
26 | #include <QSettings> | 27 | #include <QSettings> |
27 | #include <QColorDialog> | 28 | #include <QColorDialog> |
@@ -223,6 +224,8 @@ void PreferencesDialog::setupUI() | |||
223 | this, SLOT(browseDB())); | 224 | this, SLOT(browseDB())); |
224 | QObject::connect(ui->dlFontsButton, SIGNAL(clicked()), | 225 | QObject::connect(ui->dlFontsButton, SIGNAL(clicked()), |
225 | this, SLOT(dlFonts())); | 226 | this, SLOT(dlFonts())); |
227 | QObject::connect(ui->dlTargetButton, SIGNAL(clicked()), | ||
228 | this, SLOT(dlTargetDB())); | ||
226 | } | 229 | } |
227 | 230 | ||
228 | void PreferencesDialog::colorClicked() | 231 | void PreferencesDialog::colorClicked() |
@@ -278,6 +281,12 @@ void PreferencesDialog::dlFonts() | |||
278 | dl->show(); | 281 | dl->show(); |
279 | } | 282 | } |
280 | 283 | ||
284 | void PreferencesDialog::dlTargetDB() | ||
285 | { | ||
286 | TargetDownloader* dl = new TargetDownloader(this, ui->dbBox->text()); | ||
287 | dl->show(); | ||
288 | } | ||
289 | |||
281 | void PreferencesDialog::accept() | 290 | void PreferencesDialog::accept() |
282 | { | 291 | { |
283 | saveSettings(); | 292 | saveSettings(); |