diff --git a/TextureControl.cc b/TextureControl.cc index 215b4a4e4227847370da1f5a143736a4897a634d..69b212776a4ccadd2a802e17b9698f6e04042419 100644 --- a/TextureControl.cc +++ b/TextureControl.cc @@ -356,7 +356,7 @@ void TextureControlPlugin::pluginsInitialized() { textureMenu_->setTearOffEnabled(true); - emit addMenu( textureMenu_ , VIEWMENU ); + emit addMenubarAction(textureMenu_->menuAction(), VIEWMENU ); settingsDialog_ = new texturePropertiesWidget(0); diff --git a/TextureControl.hh b/TextureControl.hh index b85cad6ba76eb52fc80544de10c1d68a57823fb2..20d332875af90ba37369b2ca1a9092a0d5ecadbf 100644 --- a/TextureControl.hh +++ b/TextureControl.hh @@ -92,7 +92,7 @@ class TextureControlPlugin : public QObject, BaseInterface, TextureInterface, Me void log(Logtype _type, QString _message); void log(QString _message); // MenuInterface - void addMenu(QMenu* _menu, MenuType _type); + void addMenubarAction(QAction* _action, MenuActionType _type ); private slots: // BaseInterface