The DebugDialog class. More...
#include <debugdialog.h>
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... | |
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.
DebugDialog::DebugDialog | ( | QWidget * | parent = nullptr | ) |
DebugDialog Constructor.
parent | Parent widget. Usually MainWindow. |
|
overrideprotectedvirtual |
Overrides change event to trigger Retranslate() on a LanguageChange event.
void DebugDialog::Retranslate | ( | ) |
Retranslate window title.
Sets title based on the current translation.
|
overrideprotectedvirtual |
Overrides show event to trigger an update of the visual log (the visual log does not update while the debug dialog is hidden).
|
slot |
Update the visual log with the debug text from get_debug_str()
|
private |
Display widget for the debug dialog.