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; };