代码拉取完成,页面将自动刷新
#ifndef LOG_WIDGET_H_
#define LOG_WIDGET_H_
#include <QWidget>
#include <QTextEdit>
#include <QTabWidget>
#include <QTextBrowser>
#include "UiCommon.h"
#include "JZNodeStack.h"
#include "JZNodeWatch.h"
#include "JZNodeBreakPoint.h"
class LogBrowser : public QTextBrowser
{
Q_OBJECT
public:
LogBrowser();
void addLog(QString log);
protected slots:
void onLogContextMenu(QPoint pos);
protected:
struct TagInfo {
QString name;
QString text;
QVariantMap params;
};
TagInfo parseTag(QString line);
QTextCharFormat m_baseForamt;
};
class LogWidget : public QWidget
{
Q_OBJECT
public:
LogWidget();
~LogWidget();
void clearLog(int type);
void addLog(int type, const QString &log);
void showRunningLog();
JZNodeStack *stack();
JZNodeWatch *watchAuto();
JZNodeWatch *watchManual();
JZNodeBreakPoint *breakpoint();
signals:
void sigNavigate(QUrl url);
protected slots:
void onAchorClicked(QUrl url);
protected:
QList<LogBrowser*> m_logs;
QTabWidget *m_tabWidget;
JZNodeStack *m_stack;
JZNodeWatch *m_watchAuto;
JZNodeWatch *m_watchManual;
JZNodeBreakPoint *m_breakPoint;
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。