Caption menu style fix

This commit is contained in:
Lukas W
2014-11-15 17:46:07 +01:00
parent 70508b0c37
commit 9005dc39ca
2 changed files with 1 additions and 4 deletions

View File

@@ -83,13 +83,11 @@ QMenu::item:selected {
color: white;
font-weight:bold;
background-color: #747474;
margin:3px;
}
QMenu::item:disabled {
color: #747474;
background-color: #c9c9c9;
margin:0px;
font-size:12px;
font-weight: normal;
padding: 4px 32px 4px 20px;

View File

@@ -58,9 +58,8 @@ void captionMenu::addHelpAction()
parent, SLOT( displayHelp() ) );
}
else {
QAction* helpAction = new QAction( embed::getIconPixmap("help"), tr("Help (not available)"), NULL);
QAction* helpAction = addAction( embed::getIconPixmap("help"), tr("Help (not available)") );
helpAction->setDisabled(true);
addAction(helpAction);
}
}