Add default help menu with all standard help actions to Help button in KFind

The Help button in KFind opens the Handbook, but all usual standard help actions
like bug report, switch language and about kde/kfind are missing.
With this patch the Help button in kfind has the default behavior of all other kde applications.
REVIEW:101443
(cherry picked from commit 5b908d5b24)
This commit is contained in:
Burkhard Lück 2011-06-13 15:36:11 +02:00
parent 292a59122d
commit d1b4cc18ae

View file

@ -30,6 +30,8 @@
#include <kdebug.h>
#include <kaboutapplicationdialog.h>
#include <kstandarddirs.h>
#include <khelpmenu.h>
#include <kmenu.h>
#include "kftabdlg.h"
#include "kquery.h"
@ -39,7 +41,6 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent)
: KDialog( parent )
{
setButtons( User1 | User2 | User3 | Close | Help );
setHelp( QString(), "kfind" );
setDefaultButton( User3 );
setModal( true );
@ -97,6 +98,8 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent)
connect(query, SIGNAL(result(int)), SLOT(slotResult(int)));
connect(query, SIGNAL(foundFileList(QList< QPair<KFileItem,QString> >)), SLOT(addFiles(QList< QPair<KFileItem,QString> >)));
KHelpMenu *helpMenu = new KHelpMenu(this, KGlobal::mainComponent().aboutData(), true);
setButtonMenu( Help, helpMenu->menu() );
dirwatch=NULL;
}