修改曲线,通讯数据强度,速率
This commit is contained in:
@@ -2,35 +2,6 @@
|
||||
#include "ui_MenuBarUI.h"
|
||||
|
||||
|
||||
QLabel *log_te;
|
||||
|
||||
void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
{
|
||||
QString msgstr;
|
||||
switch (type) {
|
||||
case QtDebugMsg:
|
||||
//msgstr = QString::asprintf("Debug: %s (%s:%u, %s)", qPrintable(msg), context.file, context.line, context.function);
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
msgstr = QString::asprintf("Info: %s", qPrintable(msg));
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
//msgstr = QString::asprintf("Warning: %s (%s:%u, %s)", qPrintable(msg), context.file, context.line, context.function);
|
||||
break;
|
||||
case QtCriticalMsg:
|
||||
//msgstr = QString::asprintf("Critical: %s (%s:%u, %s)", qPrintable(msg), context.file, context.line, context.function);
|
||||
break;
|
||||
case QtFatalMsg:
|
||||
//msgstr = QString::asprintf("Fatal: %s (%s:%u, %s)", qPrintable(msg), context.file, context.line, context.function);
|
||||
break;
|
||||
}
|
||||
log_te->setText(msgstr);
|
||||
//QTextCursor cursor=log_te->textCursor();
|
||||
//cursor.movePosition(QTextCursor::End);
|
||||
//log_te->setTextCursor(cursor);
|
||||
}
|
||||
|
||||
|
||||
MenuBarUI::MenuBarUI(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::MenuBarUI)
|
||||
@@ -46,10 +17,6 @@ MenuBarUI::MenuBarUI(QWidget *parent) :
|
||||
file.close();
|
||||
|
||||
|
||||
log_te = ui->label_Status;
|
||||
|
||||
//qInstallMessageHandler(myMessageOutput);
|
||||
|
||||
MessageTimer = new QTimer(this);
|
||||
|
||||
connect(MessageTimer,SIGNAL(timeout()),
|
||||
|
||||
Reference in New Issue
Block a user