From e44183b85244c68c1617e289fa2178d2a8eaf0c7 Mon Sep 17 00:00:00 2001 From: Chenx Dust Date: Thu, 16 Jul 2026 00:49:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 8 ++++++++ mainwindow.ui | 48 ++++++++++++++++++++++++++++++++++-------------- 2 files changed, 42 insertions(+), 14 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 64d8467..137f239 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -208,6 +208,14 @@ MainWindow::MainWindow(QWidget *parent) : } ); + // 清空日志 + connect(ui->clearLogPushButton, &QPushButton::clicked, + [&]() + { + ui->logPlainTextEdit->clear(); + } + ); + connect(this, &MainWindow::SetModeFinished, this, [&]() { diff --git a/mainwindow.ui b/mainwindow.ui index f262c86..fc41ce1 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -68,20 +68,40 @@ Line3 - - - - 0 - 0 - - - - 复制日志到剪贴板 - - - 复制日志 - - + + + + + + 0 + 0 + + + + 复制日志到剪贴板 + + + 复制日志 + + + + + + + + 0 + 0 + + + + 清空窗口中的日志 + + + 清空日志 + + + +