KDEUI
khelpmenu.cpp
Go to the documentation of this file.
94 // TODO evaluate if we use static_cast<QWidget*>(parent()) instead of mParent to win that bit of memory
102 QAction *mReportBugAction, *mSwitchApplicationLanguageAction, *mAboutAppAction, *mAboutKDEAction;
134 actions->addAction(d->mSwitchApplicationLanguageAction->objectName(), d->mSwitchApplicationLanguageAction);
161 if (KAuthorized::authorizeKAction("help_report_bug") && aboutData && !aboutData->bugAddress().isEmpty()) {
166 if((KGlobal::dirs()->findAllResources("locale", QString::fromLatin1("*/entry.desktop"))).count() > 0) {
167 mSwitchApplicationLanguageAction = KStandardAction::create(KStandardAction::SwitchApplicationLanguage, q, SLOT(switchApplicationLanguage()), q);
static int marginHint()
Returns the number of pixels that should be used between a dialog edge and the outermost widget(s) ac...
Definition: kdialog.cpp:427
QString caption()
QString i18n(const char *text)
void showAboutApplication()
This signal is emitted from aboutApplication() if no "about application" string has been defined...
KAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
Display the About KDE dialog.
Definition: kstandardaction.cpp:631
void switchApplicationLanguage()
Opens the changing default application language dialog box.
Definition: khelpmenu.cpp:337
Definition: khelpmenu.h:170
Standard "About Application" dialog box.
Definition: kaboutapplicationdialog.h:48
KStandardDirs * dirs()
KHelpMenu(QWidget *parent=0, const QString &aboutAppText=QString(), bool showWhatsThis=true)
Constructor.
Definition: khelpmenu.cpp:107
Show Yes button. (this button closes the dialog and sets the result to KDialog::Yes) ...
Definition: kdialog.h:147
QAction * addAction(const QString &name, QAction *action)
Add an action under the given name to the collection.
Definition: kactioncollection.cpp:217
const KAboutData * aboutData() const
Definition: khelpmenu.h:174
static void invokeHelp(const QString &anchor=QString(), const QString &appname=QString(), const QByteArray &startup_id=QByteArray())
QString bugAddress() const
Definition: khelpmenu.h:173
KAction * aboutApp(const QObject *recvr, const char *slot, QObject *parent)
Display the application's About box.
Definition: kstandardaction.cpp:626
KAction * helpContents(const QObject *recvr, const char *slot, QObject *parent)
Display the help contents.
Definition: kstandardaction.cpp:601
Definition: khelpmenu.h:172
static int spacingHint()
Returns the number of pixels that should be used between widgets inside a dialog according to the KDE...
Definition: kdialog.cpp:432
KAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
Open up the Report Bug dialog.
Definition: kstandardaction.cpp:616
Definition: khelpmenu.h:175
KMenu * menu()
Returns a popup menu you can use in the menu bar or where you need it.
Definition: khelpmenu.cpp:181
KAction * whatsThis(const QObject *recvr, const char *slot, QObject *parent)
Trigger the What's This cursor.
Definition: kstandardaction.cpp:606
KAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
Definition: kstandardaction.cpp:621
QAction * action(MenuId id) const
Returns the QAction * associated with the given parameter Will return NULL pointers if menu() has not...
Definition: khelpmenu.cpp:232
Definition: khelpmenu.h:171
KAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to one of the KStandardAction::StandardAction actions, which is connected to the given object and slot, and is owned by parent.
Definition: kstandardaction.cpp:82
void setSpacing(int space)
Sets the spacing between the child widgets to space.
Definition: khbox.cpp:98
const KComponentData & mainComponent()
void contextHelpActivated()
Activates What's This help for the application.
Definition: khelpmenu.cpp:384
bool authorizeKAction(const QString &action)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.