A subclass of QtlDialog which displays the content of a text file.
More...
|
virtual bool | event (QEvent *event) Q_DECL_OVERRIDE |
| Process an event. More...
|
|
A subclass of QtlDialog which displays the content of a text file.
◆ QtlTextFileViewer() [1/2]
QtlTextFileViewer::QtlTextFileViewer |
( |
QWidget * |
parent = 0 , |
|
|
const QString & |
fileName = QString() , |
|
|
const QString & |
title = QString() , |
|
|
const QString & |
icon = QString() |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
[in] | parent | Optional parent widget. |
[in] | fileName | Optional text file name. |
[in] | title | Optional dialog window title. |
[in] | icon | Optional icon file name. |
◆ QtlTextFileViewer() [2/2]
QtlTextFileViewer::QtlTextFileViewer |
( |
| ) |
|
|
private |
◆ setTextFile()
void QtlTextFileViewer::setTextFile |
( |
const QString & |
fileName | ) |
|
Load a new text file to display in the box.
- Parameters
-
[in] | fileName | Text file name. |
◆ setText()
void QtlTextFileViewer::setText |
( |
const QString & |
text | ) |
|
Set a new text to display in the box.
- Parameters
-
◆ text()
QString QtlTextFileViewer::text |
( |
| ) |
const |
Get the text content of the viewer.
- Returns
- The text content of the viewer.
◆ clear()
void QtlTextFileViewer::clear |
( |
| ) |
|
◆ _text
QPlainTextEdit* QtlTextFileViewer::_text |
|
private |
The documentation for this class was generated from the following files: