Added Help submenu to Katapult systray icon. This resolves bug 1842.

pull/1/head
Michele Calgaro 11 years ago
parent 52a32a97a3
commit 22a4e52f7c

@ -27,6 +27,7 @@
#include <tdeparts/componentfactory.h>
#include <kpassivepopup.h>
#include <tdepopupmenu.h>
#include <khelpmenu.h>
#include <tdelocale.h>
#include <tdeaboutapplication.h>
#include <dcopclient.h>
@ -60,6 +61,8 @@ Katapult::Katapult()
_query = "";
settings = new KatapultSettings();
helpmenu = new KHelpMenu(this,TQString(),false);
connect(helpmenu, TQT_SIGNAL(showAboutApplication()),this, TQT_SLOT(showAboutDialog()));
hideTimer = new TQTimer(this);
connect(hideTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(hideLauncher()));
@ -139,9 +142,8 @@ void Katapult::initAccel(TQWidget *parent)
KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(showShortcutsDialog()), actions)->plug((TQWidget *) contextMenu());
KStdAction::preferences(settings, TQT_SLOT(configure()), actions)->plug((TQWidget *) contextMenu());
contextMenu()->insertSeparator();
KStdAction::aboutApp(TQT_TQOBJECT(this), TQT_SLOT(showAboutDialog()), actions)->plug((TQWidget *) contextMenu());
contextMenu()->insertSeparator();
contextMenu()->insertItem(SmallIconSet("help"), KStdGuiItem::help().text(), helpmenu->menu());
contextMenu()->insertSeparator();
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actions)->plug((TQWidget *) contextMenu());

@ -43,6 +43,7 @@
#include "katapultaction.h"
#include "katapultiface.h"
class KHelpMenu;
class KatapultSettings;
class Katapult : public KSystemTray, virtual public KatapultIface
@ -84,6 +85,7 @@ private:
TDEGlobalAccel *globalAccel;
TDEActionCollection *actions;
KatapultSettings *settings;
KHelpMenu *helpmenu;
Match bestMatch;
const KatapultAction *action;
TQString _query;

Loading…
Cancel
Save