Cppcheck
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FileViewDialog Class Reference

File view -dialog. More...

#include <fileviewdialog.h>

Inheritance diagram for FileViewDialog:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FileViewDialog()

FileViewDialog::FileViewDialog ( const QString &  file,
const QString &  title,
QWidget *  parent = nullptr 
)

Definition at line 30 of file fileviewdialog.cpp.

References loadTextFile(), and mUI.

◆ ~FileViewDialog()

FileViewDialog::~FileViewDialog ( )
override

Definition at line 44 of file fileviewdialog.cpp.

References mUI.

Member Function Documentation

◆ loadTextFile()

void FileViewDialog::loadTextFile ( const QString &  filename,
QTextEdit *  edit 
)
protected

Load text file contents to edit control.

Parameters
filenameFile to load.
editControl where to load the file contents.

Definition at line 49 of file fileviewdialog.cpp.

Referenced by FileViewDialog().

Member Data Documentation

◆ mUI

Ui::Fileview* FileViewDialog::mUI
protected

Definition at line 61 of file fileviewdialog.h.

Referenced by FileViewDialog(), and ~FileViewDialog().


The documentation for this class was generated from the following files: