diff --git a/tools/onlinequoteseditor/main.cpp b/tools/onlinequoteseditor/main.cpp index 010935d..4d886a8 100644 --- a/tools/onlinequoteseditor/main.cpp +++ b/tools/onlinequoteseditor/main.cpp @@ -1,64 +1,64 @@ /*************************************************************************** * Copyright 2018 Ralf Habacker * * * * This file is part of libalkimia. * * * * libalkimia is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2.1 of * * the License or (at your option) version 3 or any later version. * * * * libalkimia is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see * ***************************************************************************/ #include "mainwindow.h" #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #define KABOUTDATA_H #include #define KAboutData K4AboutData #else #include #endif #include #include #include #include int main(int argc, char **argv) { KAboutData about("onlinequoteseditor" TARGET_SUFFIX, "onlinequoteseditor", ki18n("Online Quotes Editor"), "1.0", ki18n("Editor for online price quotes used by finance applications"), KAboutData::License_GPL, ki18n("(C) 2018-2019 Ralf Habacker")); KCmdLineArgs::init(argc, argv, &about); KApplication app(true); MainWindow w; #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) KHelpMenu helpMenu(&w, about.shortDescription()); #else KHelpMenu helpMenu(&w, &about, false); #endif helpMenu.menu(); helpMenu.action(KHelpMenu::menuHelpContents)->setVisible(false); - helpMenu.action(KHelpMenu::menuSwitchLanguage)->setVisible(false); helpMenu.action(KHelpMenu::menuReportBug)->setVisible(false); + helpMenu.action(KHelpMenu::menuSwitchLanguage)->setVisible(true); helpMenu.action(KHelpMenu::menuAboutApp)->setText(i18n("&About %1", about.programName())); w.menuBar()->addMenu((QMenu*)helpMenu.menu()); w.show(); return app.exec(); }