From 2e17db4fd48ff3750237c1fdd9e5b7eb54acecf8 Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Sun, 18 Mar 2012 21:46:40 +0000 Subject: [PATCH] a trick to avoid 99.9% of the time that filters' tooltip will appear under the filter menu. --- src/meshlab/mainwindow_Init.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/meshlab/mainwindow_Init.cpp b/src/meshlab/mainwindow_Init.cpp index 357c8cfb9..d0e2c67f7 100644 --- a/src/meshlab/mainwindow_Init.cpp +++ b/src/meshlab/mainwindow_Init.cpp @@ -636,7 +636,20 @@ void MainWindow::fillFilterMenu() filterMenuTexture = filterMenu->addMenu(tr("Texture")); filterMenuCamera = filterMenu->addMenu(tr("Camera")); - connect(filterMenu, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuSelect, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuClean, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuCreate, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuRemeshing, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuPolygonal, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuColorize, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuQuality, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuNormal, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuLayer, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuRangeMap, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuPointSet, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuSampling, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuTexture, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); + connect(filterMenuCamera, SIGNAL(hovered(QAction*)), this, SLOT(showTooltip(QAction*)) ); QMap::iterator msi; for(msi = PM.stringFilterMap.begin(); msi != PM.stringFilterMap.end();++msi)