| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
#include <QtWidgets/QTextBrowser> |
| 30 |
#include <QTextCursor> |
| 31 |
#include <QtWidgets/QStatusBar> |
| 32 |
#include <QtWidgets/QLineEdit> |
| 33 |
#include <QDateTime> |
| 34 |
#include <QtWidgets/QGridLayout> |
| 35 |
#include <QtWidgets/QDialog> |
| 36 |
#include <QtGui> |
| 37 |
#include <QtWidgets/QMainWindow> |
| 38 |
|
| 39 |
class FindDialog : public QDialog |
| 40 |
{ |
| 41 |
Q_OBJECT |
| 42 |
public: |
| 43 |
FindDialog(QWidget *parent = 0); |
| 44 |
FindDialog(QMainWindow *parent = 0); |
| 45 |
void doFind(bool forward); |
| 46 |
void hasFindExpression() const; |
| 47 |
|
| 48 |
signals: |
| 49 |
|
| 50 |
public slots: |
| 51 |
void find(); |
| 52 |
|
| 53 |
private slots: |
| 54 |
void emitFindNext(); |
| 55 |
void verify(); |
| 56 |
|
| 57 |
private: |
| 58 |
bool m_redText = false; |
| 59 |
}; |
| 60 |
|
| 61 |
|
| 62 |
class CaseSensitiveModel: public QStandardItemModel |
| 63 |
{ |
| 64 |
CaseSensitiveModel(int rows, int columns, QObject *parent); |
| 65 |
QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const; |
| 66 |
}; |