diff widgets/PropertyBox.cpp @ 182:7386cd014f52

active the PropertyBox when double-clicking on it move the PropertyBox in the bottom right corner
author lbajardsilogic
date Thu, 22 Nov 2007 15:54:30 +0000
parents 76d4fbab5f20
children 2e81141893db
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Wed Nov 21 16:07:51 2007 +0000
+++ b/widgets/PropertyBox.cpp	Thu Nov 22 15:54:30 2007 +0000
@@ -27,6 +27,8 @@
 #include "plugin/RealTimePluginInstance.h"
 #include "plugin/PluginXml.h"
 
+#include "main/MainWindow.h"
+
 #include "AudioDial.h"
 #include "Slider.h"
 #include "LEDButton.h"
@@ -93,6 +95,9 @@
     connect(UnitDatabase::getInstance(), SIGNAL(unitDatabaseChanged()),
             this, SLOT(unitDatabaseChanged()));
 
+	move(MainWindow::instance()->pos().x() + 3*MainWindow::instance()->width()/4,
+		 MainWindow::instance()->pos().y() + 3*MainWindow::instance()->height()/5);
+
 #ifdef DEBUG_PROPERTY_BOX
     std::cerr << "PropertyBox[" << this << "]::PropertyBox returning" << std::endl;
 #endif