#include <QMenu>
//------------------------------------------------------------------------------
-vvToolCreatorBase::vvToolCreatorBase(QString name): mExperimental(false), mAction(NULL)
+vvToolCreatorBase::vvToolCreatorBase(QString name): mAction(NULL), mExperimental(false)
{
mUseContextMenu = false;
mToolName = name;
// Create main action
if (mToolIconFilename == "noicon")
mAction = new QAction(QString("&").append(mToolMenuName), this);
- else
+ else {
mAction = new QAction(QIcon(mToolIconFilename),
QString("&").append(mToolMenuName), this);
+ mAction->setIconVisibleInMenu(true);
+ }
+
mAction->setStatusTip(mToolTip);
// Connect the action
connect(mAction, SIGNAL(triggered()), this, SLOT(MenuToolSlot()));