Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DebugDialog Class Reference

The DebugDialog class. More...

#include <debugdialog.h>

Inheritance diagram for DebugDialog:

Public Slots

void update_log ()
 Update the visual log with the debug text from get_debug_str() More...
 

Public Member Functions

 DebugDialog (QWidget *parent=nullptr)
 DebugDialog Constructor. More...
 
void Retranslate ()
 Retranslate window title. More...
 

Protected Member Functions

virtual void changeEvent (QEvent *e) override
 Overrides change event to trigger Retranslate() on a LanguageChange event. More...
 
virtual void showEvent (QShowEvent *event) override
 Overrides show event to trigger an update of the visual log (the visual log does not update while the debug dialog is hidden). More...
 

Private Attributes

QTextEdit * textEdit
 Display widget for the debug dialog. More...
 

Detailed Description

The DebugDialog class.

A dialog to display the current debug output. This dialog is omnipresent and shown and hidden when the user wants to see it. For efficiency, it will not update if it's hidden.

Constructor & Destructor Documentation

DebugDialog::DebugDialog ( QWidget *  parent = nullptr)

DebugDialog Constructor.

Parameters
parentParent widget. Usually MainWindow.

Member Function Documentation

void DebugDialog::changeEvent ( QEvent *  e)
overrideprotectedvirtual

Overrides change event to trigger Retranslate() on a LanguageChange event.

void DebugDialog::Retranslate ( )

Retranslate window title.

Sets title based on the current translation.

void DebugDialog::showEvent ( QShowEvent *  event)
overrideprotectedvirtual

Overrides show event to trigger an update of the visual log (the visual log does not update while the debug dialog is hidden).

void DebugDialog::update_log ( )
slot

Update the visual log with the debug text from get_debug_str()

Member Data Documentation

QTextEdit* DebugDialog::textEdit
private

Display widget for the debug dialog.


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