From 0fe9ca51a130ec380f810b61069469451d64d2a5 Mon Sep 17 00:00:00 2001 From: flykhan Date: Wed, 30 Aug 2023 19:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=9B=BE=E6=A0=87=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 5 +++++ mainwindow.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 05ef24b..0b3d2aa 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -198,3 +198,8 @@ void MainWindow::setCurrentSlider(int currentProgress) // 设置时间滑动条状态 ui->time_slider->setValue(currentProgress); } + +void MainWindow::on_play_btn_clicked() +{ + ui->play_btn->setIcon(QIcon(":/icon/button")); +} diff --git a/mainwindow.h b/mainwindow.h index 6f746fc..f035963 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -51,6 +51,9 @@ signals: void currentTimeSignal(int time); // 当前时间信号 void currentProgressSignal(int currentProgress); // 当前进度信号 +private slots: + void on_play_btn_clicked(); + private: Ui::MainWindow *ui; };