diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-23 07:31:53 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-23 07:31:53 +0000 |
commit | e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7 (patch) | |
tree | da29255f5c33ae915c28a1dbff5525fdf912fbe6 /utils/themeeditor/qtfindreplacedialog/findform.cpp | |
parent | b21b7714209230cbadab1e709c6778c4cc214437 (diff) | |
download | rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.tar.gz rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.zip |
Theme Editor: Switched back to Lorenzo Bettini's find/replace dialog (with some modifications) as he changed the license to LGPL v2.1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27528 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/qtfindreplacedialog/findform.cpp')
-rw-r--r-- | utils/themeeditor/qtfindreplacedialog/findform.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/utils/themeeditor/qtfindreplacedialog/findform.cpp b/utils/themeeditor/qtfindreplacedialog/findform.cpp new file mode 100644 index 0000000000..70e7e58529 --- /dev/null +++ b/utils/themeeditor/qtfindreplacedialog/findform.cpp | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it> | ||
3 | * See COPYING file that comes with this distribution | ||
4 | */ | ||
5 | |||
6 | #include <QtGui> | ||
7 | #include <QTextEdit> | ||
8 | #include <QRegExp> | ||
9 | |||
10 | #include "findform.h" | ||
11 | #include "ui_findreplaceform.h" | ||
12 | |||
13 | FindForm::FindForm(QWidget *parent) : | ||
14 | FindReplaceForm(parent) | ||
15 | { | ||
16 | hideReplaceWidgets(); | ||
17 | } | ||
18 | |||
19 | FindForm::~FindForm() | ||
20 | { | ||
21 | |||
22 | } | ||
23 | |||
24 | void FindForm::changeEvent(QEvent *e) | ||
25 | { | ||
26 | QWidget::changeEvent(e); | ||
27 | switch (e->type()) { | ||
28 | case QEvent::LanguageChange: | ||
29 | ui->retranslateUi(this); | ||
30 | break; | ||
31 | default: | ||
32 | break; | ||
33 | } | ||
34 | } | ||
35 | |||
36 | void FindForm::writeSettings(QSettings &settings, const QString &prefix) { | ||
37 | FindReplaceForm::writeSettings(settings, prefix); | ||
38 | } | ||
39 | |||
40 | void FindForm::readSettings(QSettings &settings, const QString &prefix) { | ||
41 | FindReplaceForm::readSettings(settings, prefix); | ||
42 | } | ||
43 | |||