mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
filter name on icon action tooltip
This commit is contained in:
parent
155b43485d
commit
170ec290a1
@ -759,9 +759,11 @@ void MainWindow::fillFilterMenu()
|
||||
}
|
||||
|
||||
for (const auto& p : mapFilterPlugins) {
|
||||
FilterPlugin * iFilter = p.second;
|
||||
QAction *filterAction = iFilter->getFilterAction(p.first);
|
||||
QString tooltip = iFilter->filterInfo(filterAction) + "<br>" + getDecoratedFileName(filterAction->data().toString());
|
||||
FilterPlugin* iFilter = p.second;
|
||||
QAction* filterAction = iFilter->getFilterAction(p.first);
|
||||
QString tooltip = "<b>" + iFilter->filterName(filterAction) + "</b><br>" +
|
||||
iFilter->filterInfo(filterAction) + "<br>" +
|
||||
getDecoratedFileName(filterAction->data().toString());
|
||||
filterAction->setToolTip(tooltip);
|
||||
connect(filterAction, SIGNAL(triggered()), this, SLOT(startFilter()));
|
||||
|
||||
@ -831,10 +833,8 @@ void MainWindow::fillFilterMenu()
|
||||
if (filterClass == 0) {
|
||||
filterMenu->addAction(filterAction);
|
||||
}
|
||||
//if(!filterAction->icon().isNull())
|
||||
// if(!filterAction->icon().isNull())
|
||||
// filterToolBar->addAction(filterAction);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -121,7 +121,7 @@ SelectionFilterPlugin::SelectionFilterPlugin()
|
||||
|
||||
QString SelectionFilterPlugin::pluginName() const
|
||||
{
|
||||
return "FilterSelect";
|
||||
return "FilterSelect";
|
||||
}
|
||||
|
||||
QString SelectionFilterPlugin::filterName(ActionIDType filter) const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user