mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
292a59122d
commit
d1b4cc18ae
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue