Fixed tderandrtray popup menu Help functionality. This resolves bug 1949.

pull/2/head
Michele Calgaro 10 years ago
parent c383da9dc6
commit f3ae8d691d

@ -54,7 +54,9 @@ KRandRSystemTray::KRandRSystemTray(TQWidget* parent, const char *name)
, m_popupUp(false)
, m_help(new KHelpMenu(this, TDEGlobal::instance()->aboutData(), false, actionCollection()))
{
setPixmap(KSystemTray::loadSizedIcon("randr", width()));
TDEPopupMenu *help = m_help->menu();
help->connectItem(KHelpMenu::menuHelpContents, this, TQT_SLOT(slotHelpContents()));
setPixmap(KSystemTray::loadSizedIcon("randr", width()));
setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
connect(this, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(_quit()));
TQToolTip::add(this, i18n("Screen resize & rotate"));
@ -882,3 +884,9 @@ void KRandRSystemTray::deviceChanged (TDEGenericDevice* device) {
applyHotplugRules(locateLocal("config", "/", true));
}
}
void KRandRSystemTray::slotHelpContents()
{
kapp->invokeHelp(TQString::null, "tderandrtray");
}

@ -58,6 +58,7 @@ protected slots:
void slotOutputChanged(int parameter);
void slotColorProfileChanged(int parameter);
void slotDisplayProfileChanged(int parameter);
void slotHelpContents();
protected:
void mousePressEvent( TQMouseEvent *e );

Loading…
Cancel
Save