// 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()));