Cppcheck
|
File view -dialog. More...
#include <fileviewdialog.h>
Public Member Functions | |
FileViewDialog (const QString &file, const QString &title, QWidget *parent=nullptr) | |
~FileViewDialog () override | |
Protected Member Functions | |
void | loadTextFile (const QString &filename, QTextEdit *edit) |
Load text file contents to edit control. More... | |
Protected Attributes | |
Ui::Fileview * | mUI |
File view -dialog.
This dialog shows text files. It is used for showing the license file and the authors list.
Definition at line 42 of file fileviewdialog.h.
FileViewDialog::FileViewDialog | ( | const QString & | file, |
const QString & | title, | ||
QWidget * | parent = nullptr |
||
) |
Definition at line 30 of file fileviewdialog.cpp.
References loadTextFile(), and mUI.
|
override |
Definition at line 44 of file fileviewdialog.cpp.
References mUI.
|
protected |
Load text file contents to edit control.
filename | File to load. |
edit | Control where to load the file contents. |
Definition at line 49 of file fileviewdialog.cpp.
Referenced by FileViewDialog().
|
protected |
Definition at line 61 of file fileviewdialog.h.
Referenced by FileViewDialog(), and ~FileViewDialog().