From 10ef94840d79ea99987ca608c6c38f79e403eacd Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Thu, 10 Apr 2008 11:07:42 +0000 Subject: [PATCH] added tooltip to decorations --- src/meshlab/mainwindow_Init.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/meshlab/mainwindow_Init.cpp b/src/meshlab/mainwindow_Init.cpp index 4e3b227f9..fd0f72ed0 100644 --- a/src/meshlab/mainwindow_Init.cpp +++ b/src/meshlab/mainwindow_Init.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.92 2008/04/10 11:07:42 cignoni +added tooltip to decorations + Revision 1.91 2008/03/10 09:39:51 cignoni better disabling of functionalities when no mesh is loaded @@ -641,8 +644,14 @@ void MainWindow::loadPlugins() MeshDecorateInterface *iDecorator = qobject_cast(plugin); if (iDecorator){ - decoratorActionList+=iDecorator->actions(); - addToMenu(iDecorator->actions(), renderMenu, SLOT(applyDecorateMode())); + QAction *decoratorAction; + decoratorActionList+=iDecorator->actions(); + foreach(decoratorAction, iDecorator->actions()) + { + connect(decoratorAction,SIGNAL(triggered()),this,SLOT(applyDecorateMode())); + decoratorAction->setToolTip(iDecorator->Info(decoratorAction)); + renderMenu->addAction(decoratorAction); + } } MeshRenderInterface *iRender = qobject_cast(plugin);