Widget that lets use compare two strings inside a pair of QTextEdit widgets: dynamically colours the first line that differs between them.
More...
#include <Tools/Widgets/textcomparisonwidget.h>
Inherits QDialog.
|
| TextComparisonWidget (const QString &stringA, const QString &stringB, const QBrush &brushA, const QBrush &brushB, bool readOnly, QWidget *parent=nullptr) |
|
bool | isModified (bool isA) |
|
void | setContext (const QString &documentTitleA, const QString &documentTitleB, const QString &contextStr) |
|
QString | text (bool isA) |
|
This is intended to help compare long strings such as scripts
◆ TextComparisonWidget()
TextComparisonWidget |
( |
const QString & |
stringA, |
|
|
const QString & |
stringB, |
|
|
const QBrush & |
brushA, |
|
|
const QBrush & |
brushB, |
|
|
bool |
readOnly, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ isModified()
bool isModified |
( |
bool |
isA | ) |
|
◆ onColumnNumberChanged
void onColumnNumberChanged |
( |
int |
columnNumber | ) |
|
|
protectedslot |
◆ onGhostLineTempHighlighted
void onGhostLineTempHighlighted |
( |
int |
referenceLineNumber, |
|
|
int |
offset |
|
) |
| |
|
protectedslot |
◆ onScrollValueChanged
void onScrollValueChanged |
( |
int |
value | ) |
|
|
protectedslot |
◆ onSynchroniseEditors
void onSynchroniseEditors |
( |
bool |
synchronise | ) |
|
|
protectedslot |
◆ onTempHighlightedLineChanged
void onTempHighlightedLineChanged |
( |
int |
lineNumber | ) |
|
|
protectedslot |
◆ onTextChanged
◆ setContext()
void setContext |
( |
const QString & |
documentTitleA, |
|
|
const QString & |
documentTitleB, |
|
|
const QString & |
contextStr |
|
) |
| |
◆ text()