From 696ae7e85f6bb0be02d8f474b597b019edcdf83a Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 19 Dec 2015 11:48:54 +0100 Subject: [PATCH] Add gear icon to settings menu entry --- cockatrice/src/main.cpp | 4 ++++ cockatrice/src/window_main.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/cockatrice/src/main.cpp b/cockatrice/src/main.cpp index 2195beb5..cf4adb0b 100644 --- a/cockatrice/src/main.cpp +++ b/cockatrice/src/main.cpp @@ -132,6 +132,10 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("cockatrice.de"); QCoreApplication::setApplicationName("Cockatrice"); +#ifdef Q_OS_MAC + qApp->setAttribute(Qt::AA_DontShowIconsInMenus, true); +#endif + #ifdef Q_OS_MAC translationPath = qApp->applicationDirPath() + "/../Resources/translations"; #elif defined(Q_OS_WIN) diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index 5bc42118..17eaf5ba 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -485,6 +485,7 @@ void MainWindow::retranslateUi() aFullScreen->setText(tr("&Full screen")); aRegister->setText(tr("&Register to server...")); aSettings->setText(tr("&Settings...")); + aSettings->setIcon(QPixmap("theme:icons/settings")); aExit->setText(tr("&Exit")); #if defined(__APPLE__) /* For OSX */