Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
apper
0004-Adds-a-Help-menu-to-Apper-BUG-293440.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Adds-a-Help-menu-to-Apper-BUG-293440.patch of Package apper
From a7d3614e0cc9bb4dcd0720281f8760578a93465c Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti <dantti12@gmail.com> Date: Wed, 9 Jan 2013 13:50:59 -0200 Subject: [PATCH 04/14] Adds a Help menu to Apper BUG 293440 --- Apper/MainUi.cpp | 3 ++- ApperKCM/ApperKCM.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Apper/MainUi.cpp b/Apper/MainUi.cpp index 587d75a..31c2092 100644 --- a/Apper/MainUi.cpp +++ b/Apper/MainUi.cpp @@ -39,7 +39,8 @@ MainUi::MainUi(QWidget *parent) // Set Apply and Cancel buttons setButtons(KDialog::Apply /*| KDialog::Help*/ | KDialog::Default | KDialog::Reset); - KPageWidgetItem *page = addModule("kcm_apper.desktop"); + KPageWidgetItem *page = addModule(QLatin1String("kcm_apper.desktop"), + QStringList() << QLatin1String("apper")); if (page) { KCModuleProxy *proxy = static_cast<KCModuleProxy*>(page->widget()); if (proxy) { diff --git a/ApperKCM/ApperKCM.cpp b/ApperKCM/ApperKCM.cpp index 14a5cd6..a6677b0 100644 --- a/ApperKCM/ApperKCM.cpp +++ b/ApperKCM/ApperKCM.cpp @@ -31,6 +31,7 @@ #include <KMessageBox> #include <KFileItemDelegate> #include <KMenu> +#include <KHelpMenu> #include <KTabBar> #include <PackageModel.h> @@ -221,6 +222,13 @@ ApperKCM::ApperKCM(QWidget *parent, const QVariantList &args) : connect(signalMapper, SIGNAL(mapped(QString)), this, SLOT(setPage(QString))); + // Only show help menu if not on System Settings + if (!args.isEmpty()) { + // adds the help menu + KHelpMenu *helpMenu = new KHelpMenu(this); + menu->addMenu(helpMenu->menu()); + } + // Make sure the search bar is visible ui->stackedWidgetBar->setCurrentIndex(BAR_SEARCH); } -- 1.8.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor