From 0d769052215f2c73ba76ecc3478de916101ee0e0 Mon Sep 17 00:00:00 2001 From: James Fawcus-Robinson Date: Sat, 20 May 2017 19:20:52 +0100 Subject: [PATCH] MainWindow.cpp: add tooltips to MainWindow buttons Some of the buttons functions, like the OSC settings one, are fairly obscure. This only adds tooltips to the ones in the MainWindow section. --- CasterSoundboard/MainWindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CasterSoundboard/MainWindow.cpp b/CasterSoundboard/MainWindow.cpp index 532d12e..f9c6317 100644 --- a/CasterSoundboard/MainWindow.cpp +++ b/CasterSoundboard/MainWindow.cpp @@ -73,6 +73,7 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) addNewTabButton = new QPushButton; addNewTabButton->setIcon(QIcon(":/res/img/newTab.png")); addNewTabButton->setIconSize(QSize(40,40)); + addNewTabButton->setToolTip("New Tab"); //addNewTabButton->setFixedSize(30,30); //layout->addWidget(addNewTabButton,0,2, Qt::AlignRight); @@ -80,44 +81,52 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) openTabButton = new QPushButton; openTabButton->setIcon(QIcon(":/res/img/open.png")); openTabButton->setIconSize(QSize(40,40)); + openTabButton->setToolTip("Open Tab"); //openTabButton->setFixedSize(30,30); //~~Save Tab~~ saveTabButton = new QPushButton; saveTabButton->setIcon(QIcon(":/res/img/save.png")); saveTabButton->setIconSize(QSize(40,40)); + saveTabButton->setToolTip("Save Tab"); //saveTabButton->setFixedSize(30,30); //~~Save As Tab~~ saveAsTabButton = new QPushButton; saveAsTabButton->setIcon(QIcon(":/res/img/save_as.png")); saveAsTabButton->setIconSize(QSize(40,40)); + saveAsTabButton->setToolTip("Save Tab As"); //saveAsTabButton->setFixedSize(40,40); //~~Stop ALL Sounds~~ stopAllSoundsButton = new QPushButton; stopAllSoundsButton->setIcon(QIcon(":/res/img/stopAll.png")); stopAllSoundsButton->setIconSize(QSize(40,40)); + stopAllSoundsButton->setToolTip("Stop All Sounds"); //~~Toogle Ducking~~ toggleAudioDuckingButton = new QPushButton; toggleAudioDuckingButton->setIcon(QIcon(":/res/img/duck.png")); toggleAudioDuckingButton->setIconSize(QSize(40,40)); + toggleAudioDuckingButton->setToolTip("Toggle Ducking"); //~~Rename Tab~~ renameCurrentTabButton = new QPushButton; renameCurrentTabButton->setIcon(QIcon(":/res/img/rename.png")); renameCurrentTabButton->setIconSize(QSize(40,40)); + renameCurrentTabButton->setToolTip("Rename Tab"); //~~OSC Settings~~ openSoundControlButton = new QPushButton; openSoundControlButton->setIcon(QIcon(":/res/img/open_sound_control.png")); openSoundControlButton->setIconSize(QSize(40,40)); + openSoundControlButton->setToolTip("OSC Settings"); //~~About Button~~ aboutButton = new QPushButton; aboutButton->setIcon(QIcon(":/res/img/about.png")); aboutButton->setIconSize(QSize(40,40)); + aboutButton->setToolTip("About"); //aboutButton->setFixedSize(30,30); //layout->addWidget(aboutButton,0,0, Qt::AlignLeft);