Fix yellow.
[kugel-rb.git] / utils / themeeditor / qtfindreplacedialog / findform.h
blob57911c4ef164f0b93e9aa916befecd9b9865c634
1 /*
2 * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
3 * See COPYING file that comes with this distribution
4 */
6 #ifndef FINDFORM_H
7 #define FINDFORM_H
9 #include <QWidget>
10 #include <QTextCursor>
12 #include "findreplace_global.h"
14 #include "findreplaceform.h"
16 /**
17 * The form for the find dialog (it is basically the same
18 * as FindReplaceForm without the replace related widgets).
20 class FINDREPLACESHARED_EXPORT FindForm : public FindReplaceForm {
21 Q_OBJECT
22 public:
23 FindForm(QWidget *parent = 0);
24 ~FindForm();
26 /**
27 * Writes the state of the form to the passed settings.
28 * @param settings
29 * @param prefix the prefix to insert in the settings
31 virtual void writeSettings(QSettings &settings, const QString &prefix = "FindDialog");
33 /**
34 * Reads the state of the form from the passed settings.
35 * @param settings
36 * @param prefix the prefix to look for in the settings
38 virtual void readSettings(QSettings &settings, const QString &prefix = "FindDialog");
40 protected:
41 void changeEvent(QEvent *e);
45 #endif // FINDFORM_H