a trick to avoid 99.9% of the time that filters' tooltip will appear under the filter menu.

This commit is contained in:
Guido Ranzuglia granzuglia 2012-03-18 21:46:40 +00:00
parent 7ff233990b
commit 2e17db4fd4

View File

@ -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<QString,MeshFilterInterface *>::iterator msi;
for(msi = PM.stringFilterMap.begin(); msi != PM.stringFilterMap.end();++msi)