#ifndef DEBUGCONSOLE_H#define DEBUGCONSOLE_H#include "guiSQLiteStudio_global.h"#include <QDialog>#include <QTextCharFormat>namespace Ui {class DebugConsole;}class GUI_API_EXPORT DebugConsole : public QDialog{Q_OBJECTpublic:explicit DebugConsole(QWidget *parent = 0);~DebugConsole();protected:void showEvent(QShowEvent*);private:void initFormats();void message(const QString& msg, const QTextCharFormat& format);Ui::DebugConsole *ui = nullptr;QTextCharFormat dbgFormat;QTextCharFormat wrnFormat;QTextCharFormat criFormat;QTextCharFormat fatFormat;QTextBlockFormat blockFormat;private slots:void reset();public slots:void debug(const QString& msg);void warning(const QString& msg);void critical(const QString& msg);void fatal(const QString& msg);};#endif // DEBUGCONSOLE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。