From a80e5947363ba5f3d77321dd72a4cd93c777998a Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 13 Oct 2011 01:58:08 +0000 Subject: namespace fix --- muse2/ChangeLog | 2 ++ muse2/muse/plugin.cpp | 8 ++++---- muse2/share/plugins/1050.ui | 16 ++++++++-------- muse2/share/plugins/2142.ui | 16 ++++++++-------- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/muse2/ChangeLog b/muse2/ChangeLog index 5d306791..506f3629 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,3 +1,5 @@ +12.10.2011: + - Made the plugins aware of namespaces. (Orcan) 11.10.2011: - Fixed the build of experimental rhythm generator. (Orcan) 09.10.2011: diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp index 63e65f2e..2bdd0317 100644 --- a/muse2/muse/plugin.cpp +++ b/muse2/muse/plugin.cpp @@ -3546,7 +3546,7 @@ PluginGui::PluginGui(MusECore::PluginIBase* p) gw[nobj].param = parameter; gw[nobj].type = -1; - if (strcmp(obj->metaObject()->className(), "Slider") == 0) { + if (strcmp(obj->metaObject()->className(), "MusEGui::Slider") == 0) { gw[nobj].type = GuiWidgets::SLIDER; ((Slider*)obj)->setId(nobj); ((Slider*)obj)->setCursorHoming(true); @@ -3561,7 +3561,7 @@ PluginGui::PluginGui(MusECore::PluginIBase* p) connect(obj, SIGNAL(sliderReleased(int)), SLOT(guiSliderReleased(int))); connect(obj, SIGNAL(sliderRightClicked(const QPoint &, int)), SLOT(guiSliderRightClicked(const QPoint &, int))); } - else if (strcmp(obj->metaObject()->className(), "DoubleLabel") == 0) { + else if (strcmp(obj->metaObject()->className(), "MusEGui::DoubleLabel") == 0) { gw[nobj].type = GuiWidgets::DOUBLE_LABEL; ((DoubleLabel*)obj)->setId(nobj); //for(int i = 0; i < nobj; i++) @@ -4611,9 +4611,9 @@ void PluginGui::guiSliderRightClicked(const QPoint &p, int idx) //--------------------------------------------------------- QWidget* PluginLoader::createWidget(const QString & className, QWidget * parent, const QString & name) { - if(className == QString("DoubleLabel")) + if(className == QString("MusEGui::DoubleLabel")) return new DoubleLabel(parent, name.toLatin1().constData()); - if(className == QString("Slider")) + if(className == QString("MusEGui::Slider")) return new Slider(parent, name.toLatin1().constData(), Qt::Horizontal); return QUiLoader::createWidget(className, parent, name); diff --git a/muse2/share/plugins/1050.ui b/muse2/share/plugins/1050.ui index bc478810..cd3f8689 100644 --- a/muse2/share/plugins/1050.ui +++ b/muse2/share/plugins/1050.ui @@ -43,7 +43,7 @@ - + 10 @@ -59,7 +59,7 @@ - + 0 @@ -87,7 +87,7 @@ - + 0 @@ -131,7 +131,7 @@ - + 10 @@ -147,7 +147,7 @@ - + 0 @@ -191,7 +191,7 @@ - + 10 @@ -211,12 +211,12 @@ - Slider + MusEGui::Slider QWidget
slider.h
- DoubleLabel + MusEGui::DoubleLabel QWidget
doublelabel.h
diff --git a/muse2/share/plugins/2142.ui b/muse2/share/plugins/2142.ui index 82b9b73d..a1ee7def 100644 --- a/muse2/share/plugins/2142.ui +++ b/muse2/share/plugins/2142.ui @@ -37,7 +37,7 @@
- + 0 @@ -65,7 +65,7 @@ - + 0 @@ -106,7 +106,7 @@ - + 0 @@ -147,7 +147,7 @@ - + 10 @@ -166,7 +166,7 @@ - + 10 @@ -185,7 +185,7 @@ - + 10 @@ -478,12 +478,12 @@ - DoubleLabel + MusEGui::DoubleLabel QWidget
doublelabel.h
- Slider + MusEGui::Slider QWidget
slider.h
-- cgit v1.2.3