|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <FilterTextEdit.hpp>
Public Member Functions | |
| FilterTextEdit (QWidget *parent) | |
| virtual | ~FilterTextEdit () |
| void | append (const QString &text) |
| void | setPlainText (const QString &text) |
| void | setFilter (const QString &filter) |
| void | setInversion (bool invert) |
Private Slots | |
| void | clear () |
Private Member Functions | |
| void | filterAndSet (const QString &text) |
Private Attributes | |
| QString | m_filter |
| QString | m_original |
| bool | m_invert |
| the 'original' text. | |
Allows filtering of text in a text edit. This will keep track of the 'original' text so that changes to the filter will be redone on that text. Example:
It now shows:
This is a first line This is a second line
One can for example filter on the word 'first'
It now shows:
This is a first line
If another filter is set the 'original' text is re-filtered:
It now shows:
This is a second line
Definition at line 46 of file FilterTextEdit.hpp.
|
inline |
Definition at line 49 of file FilterTextEdit.hpp.
|
inlinevirtual |
Definition at line 52 of file FilterTextEdit.hpp.
|
inline |
Definition at line 55 of file FilterTextEdit.hpp.
|
inlineprivateslot |
Definition at line 75 of file FilterTextEdit.hpp.
|
inlineprivate |
Definition at line 80 of file FilterTextEdit.hpp.
|
inline |
Definition at line 66 of file FilterTextEdit.hpp.
|
inline |
Definition at line 70 of file FilterTextEdit.hpp.
|
inline |
Definition at line 61 of file FilterTextEdit.hpp.
|
private |
Definition at line 101 of file FilterTextEdit.hpp.
|
private |
the 'original' text.
Definition at line 103 of file FilterTextEdit.hpp.
|
private |
Definition at line 102 of file FilterTextEdit.hpp.