changeset 207:95d9c6de5a4f

add a tool tip to the fader button (plugin parameters of property box)
author lbajardsilogic
date Thu, 31 Jan 2008 10:37:01 +0000
parents fa034c6ae8bf
children a03e0549f29c
files widgets/PropertyBox.cpp widgets/PropertyBox.h
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Thu Jan 31 10:08:45 2008 +0000
+++ b/widgets/PropertyBox.cpp	Thu Jan 31 10:37:01 2008 +0000
@@ -187,14 +187,16 @@
 
 	layout->insertStretch(-1, 10);
 
-        if (params->getPlayPluginId() != "") {
-            QPushButton *pluginButton = new QPushButton(QIcon(":icons/faders.png"), "");
-            pluginButton->setFixedWidth(24);
-            pluginButton->setFixedHeight(24);
-            layout->addWidget(pluginButton);
-            connect(pluginButton, SIGNAL(clicked()),
+	if (params->getPlayPluginId() != "") {
+		QPushButton *pluginButton = new QPushButton(QIcon(":icons/faders.png"), "");
+		pluginButton->setObjectName("fadersButton");
+		pluginButton->setToolTip("Plugin parameters");
+		pluginButton->setFixedWidth(24);
+		pluginButton->setFixedHeight(24);
+		layout->addWidget(pluginButton);
+		connect(pluginButton, SIGNAL(clicked()),
                     this, SLOT(editPlugin()));
-        }
+	}
 
 	AudioDial *gainDial = new AudioDial;
 	layout->addWidget(gainDial);
--- a/widgets/PropertyBox.h	Thu Jan 31 10:08:45 2008 +0000
+++ b/widgets/PropertyBox.h	Thu Jan 31 10:37:01 2008 +0000
@@ -85,7 +85,7 @@
     QVBoxLayout *m_mainBox;
     LEDButton *m_showButton;
     LEDButton *m_playButton;
-    std::map<QString, QLayout *> m_groupLayouts;
+	std::map<QString, QLayout *> m_groupLayouts;
     std::map<QString, QWidget *> m_propertyControllers;
 
 public :