mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
feat: 支持清除日志
This commit is contained in:
@@ -208,6 +208,14 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
}
|
||||
);
|
||||
|
||||
// 清空日志
|
||||
connect(ui->clearLogPushButton, &QPushButton::clicked,
|
||||
[&]()
|
||||
{
|
||||
ui->logPlainTextEdit->clear();
|
||||
}
|
||||
);
|
||||
|
||||
connect(this, &MainWindow::SetModeFinished, this,
|
||||
[&]()
|
||||
{
|
||||
|
||||
@@ -68,6 +68,8 @@ Line3</string>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<layout class="QHBoxLayout" name="logButtonLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="copyLogPushButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
@@ -83,6 +85,24 @@ Line3</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="clearLogPushButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>清空窗口中的日志</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>清空日志</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="pushButton1">
|
||||
<property name="text">
|
||||
|
||||
Reference in New Issue
Block a user