Warning: I mistakenly reverted the changes to the mainwindow_RunTime.cpp before committing the last revision. This commit contains such change

This commit is contained in:
Paolo Cignoni cignoni 2010-05-03 04:58:14 +00:00
parent 42c4211ae0
commit 273dafd4b5

View File

@ -353,7 +353,6 @@ void MainWindow::runFilterScript()
//WARNING!!!!!!!!!!!!
/* to be changed */
iFilter->applyFilter( action, meshDocument, (*ii).second, QCallBack );
if(iFilter->getClass(action) & MeshFilterInterface::FaceColoring ) {
GLA()->setColorMode(vcg::GLW::CMPerFace);
GLA()->mm()->updateDataMask(MeshModel::MM_FACECOLOR);
@ -380,6 +379,14 @@ void MainWindow::runFilterScript()
}
}
// Receives the action that wants to show a tooltip and display it
// on screen at the current mouse position.
// TODO: have the tooltip always display with fixed width at the right
// hand side of the menu entry (not invasive)
void MainWindow::showTooltip(QAction* q){
QString tip = q->toolTip();
QToolTip::showText(QCursor::pos(), tip);
}
// /////////////////////////////////////////////////
// The Very Important Procedure of applying a filter