Cute Chess 0.1
PlainTextLog Class Reference

Widget that is used to display log messages in plain text. More...

#include <plaintextlog.h>

Inheritance diagram for PlainTextLog:
QPlainTextEdit

Public Slots

void saveLogToFile (const QString &fileName)

Public Member Functions

 PlainTextLog (const QString &text, QWidget *parent=nullptr)
 PlainTextLog (QWidget *parent=nullptr)

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)

Detailed Description

Widget that is used to display log messages in plain text.

Constructor & Destructor Documentation

◆ PlainTextLog() [1/2]

PlainTextLog::PlainTextLog ( QWidget * parent = nullptr)

Constructs a new plain text log with the given parent.

◆ PlainTextLog() [2/2]

PlainTextLog::PlainTextLog ( const QString & text,
QWidget * parent = nullptr )

Constructs a new plain text log with the initial text text and given parent.

Member Function Documentation

◆ saveLogToFile

void PlainTextLog::saveLogToFile ( const QString & fileName)
slot

Save the log to file filename.


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