From 8f3693a1e5fc2a424c41367d883bba9d2edf6838 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 20 Jul 2023 20:31:23 -0500 Subject: [PATCH] Replace key specifiers in slide buttons with tooltips --- src/mainwindow.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c5bef9a..11fb112 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -30,10 +30,14 @@ MainWindow::MainWindow(QWidget *parent): QMainWindow(parent) { m_rootLyt->addWidget(m_slideView); m_rootLyt->addLayout(controlsLayout); // setup slide controls - const auto btnPrevSong = new QPushButton(tr("Previous Song (Left)"), this); - const auto btnPrevSlide = new QPushButton(tr("Previous Slide (Up)"), this); - const auto btnNextSlide = new QPushButton(tr("Next Slide (Down)"), this); - const auto btnNextSong = new QPushButton(tr("Next Song (Right)"), this); + const auto btnPrevSong = new QPushButton(tr("Previous Song"), this); + const auto btnPrevSlide = new QPushButton(tr("Previous Slide"), this); + const auto btnNextSlide = new QPushButton(tr("Next Slide"), this); + const auto btnNextSong = new QPushButton(tr("Next Song"), this); + btnPrevSong->setToolTip(tr("Change to previous song (left arrow key)")); + btnPrevSlide->setToolTip(tr("Change to previous slide (up arrow key)")); + btnNextSong->setToolTip(tr("Change to next song (right arrow key)")); + btnNextSlide->setToolTip(tr("Change to next slide (down arrow key)")); controlsLayout->addWidget(btnPrevSlide, 0, 1); controlsLayout->addWidget(btnNextSlide, 0, 2); controlsLayout->addWidget(btnPrevSong, 0, 0);