summaryrefslogtreecommitdiff
path: root/utils/themeeditor/qtfindreplacedialog/findform.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-23 07:31:53 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-23 07:31:53 +0000
commite6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7 (patch)
treeda29255f5c33ae915c28a1dbff5525fdf912fbe6 /utils/themeeditor/qtfindreplacedialog/findform.cpp
parentb21b7714209230cbadab1e709c6778c4cc214437 (diff)
downloadrockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.zip
rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.tar.gz
rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.tar.bz2
rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.tar.xz
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.cpp43
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 0000000..70e7e58
--- /dev/null
+++ b/utils/themeeditor/qtfindreplacedialog/findform.cpp
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
+ * See COPYING file that comes with this distribution
+ */
+
+#include <QtGui>
+#include <QTextEdit>
+#include <QRegExp>
+
+#include "findform.h"
+#include "ui_findreplaceform.h"
+
+FindForm::FindForm(QWidget *parent) :
+ FindReplaceForm(parent)
+{
+ hideReplaceWidgets();
+}
+
+FindForm::~FindForm()
+{
+
+}
+
+void FindForm::changeEvent(QEvent *e)
+{
+ QWidget::changeEvent(e);
+ switch (e->type()) {
+ case QEvent::LanguageChange:
+ ui->retranslateUi(this);
+ break;
+ default:
+ break;
+ }
+}
+
+void FindForm::writeSettings(QSettings &settings, const QString &prefix) {
+ FindReplaceForm::writeSettings(settings, prefix);
+}
+
+void FindForm::readSettings(QSettings &settings, const QString &prefix) {
+ FindReplaceForm::readSettings(settings, prefix);
+}
+