summaryrefslogtreecommitdiffstats
path: root/examples/uitools/textfinder/textfinder.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-06-16 17:38:29 +0200
committerKai Koehne <kai.koehne@qt.io>2017-06-22 09:50:33 +0000
commit4ba1f6ec607f05807f39a271e7e4c457fe3b0803 (patch)
tree977e9cfec3222eac47f4a50445405ba53e7fc996 /examples/uitools/textfinder/textfinder.h
parent6da03454544364ffe414b7c03cfcb0810abb43d4 (diff)
TextFinder: Improve code and documentation
Task-number: QTBUG-61419 Change-Id: Ib00152f0a04546d275a40a5d57fe046b82ebc421 GPush-Base: 8abb03b0d84a3a94f7db41e010f69955488ea893 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'examples/uitools/textfinder/textfinder.h')
-rw-r--r--examples/uitools/textfinder/textfinder.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/uitools/textfinder/textfinder.h b/examples/uitools/textfinder/textfinder.h
index a28defa49..17336d260 100644
--- a/examples/uitools/textfinder/textfinder.h
+++ b/examples/uitools/textfinder/textfinder.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -54,9 +54,9 @@
#include <QWidget>
QT_BEGIN_NAMESPACE
+class QLineEdit;
class QPushButton;
class QTextEdit;
-class QLineEdit;
QT_END_NAMESPACE
//! [0]
@@ -65,20 +65,16 @@ class TextFinder : public QWidget
Q_OBJECT
public:
- TextFinder(QWidget *parent = 0);
+ explicit TextFinder(QWidget *parent = nullptr);
private slots:
void on_findButton_clicked();
private:
- QWidget* loadUiFile();
- void loadTextFile();
-
QPushButton *ui_findButton;
QTextEdit *ui_textEdit;
QLineEdit *ui_lineEdit;
- bool isFirstTime;
};
//! [0]
-#endif
+#endif // TEXTFINDER_H