summaryrefslogtreecommitdiff
path: root/doc/example
diff options
context:
space:
mode:
Diffstat (limited to 'doc/example')
-rw-r--r--doc/example/textfinder/main.cpp4
-rw-r--r--doc/example/textfinder/textfinder.cpp6
-rw-r--r--doc/example/textfinder/textfinder.h4
3 files changed, 10 insertions, 4 deletions
diff --git a/doc/example/textfinder/main.cpp b/doc/example/textfinder/main.cpp
index 7f8c63d951..e790b6e989 100644
--- a/doc/example/textfinder/main.cpp
+++ b/doc/example/textfinder/main.cpp
@@ -30,9 +30,11 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtGui/QApplication>
+
#include "textfinder.h"
+#include <QtGui/QApplication>
+
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(textfinder);
diff --git a/doc/example/textfinder/textfinder.cpp b/doc/example/textfinder/textfinder.cpp
index a524f1c869..c2a9f50f86 100644
--- a/doc/example/textfinder/textfinder.cpp
+++ b/doc/example/textfinder/textfinder.cpp
@@ -30,10 +30,12 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtGui/QMessageBox>
+
+#include "textfinder.h"
+
#include <QtCore/QFile>
#include <QtCore/QTextStream>
-#include "textfinder.h"
+#include <QtGui/QMessageBox>
TextFinder::TextFinder(QWidget *parent, Qt::WFlags flags)
: QWidget(parent, flags)
diff --git a/doc/example/textfinder/textfinder.h b/doc/example/textfinder/textfinder.h
index 2563a2016a..d5d10c6b52 100644
--- a/doc/example/textfinder/textfinder.h
+++ b/doc/example/textfinder/textfinder.h
@@ -30,12 +30,14 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTFINDER_H
#define TEXTFINDER_H
-#include <QtGui/QWidget>
#include "ui_textfinder.h"
+#include <QtGui/QWidget>
+
class QPushButton;
class QTextEdit;
class QLineEdit;