X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=d92847bf0f9e84caf45b9eb50513755b26f566f8;hb=177725e4f259a75dcdbd4260ac57e5dd9c01fd57;hp=ec13cd741c4730ee82cf983ec7ed74d9df8ee00a;hpb=7a81f05c63a992acf4a859fd1136700e1d8b98ac;p=nageru diff --git a/mainwindow.cpp b/mainwindow.cpp index ec13cd7..d92847b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -328,6 +328,10 @@ void MainWindow::mixer_created(Mixer *mixer) midi_mapper.refresh_lights(); }); connect(ui->reset_meters_button, &QPushButton::clicked, this, &MainWindow::reset_meters_button_clicked); + // Even though we have a reset button right next to it, the fact that + // the expanded audio view labels are clickable makes it natural to + // click this one as well. + connect(ui->peak_display, &ClickableLabel::clicked, this, &MainWindow::reset_meters_button_clicked); mixer->get_audio_mixer()->set_audio_level_callback(bind(&MainWindow::audio_level_callback, this, _1, _2, _3, _4, _5, _6, _7, _8)); midi_mapper.refresh_highlights();