Commit 52d683a3 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues [explicit] + [license] + [postfixop] + [normalize]

parent d049a70d
/*
This file is part of KHelpCenter.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "docentry.h"
#include "khc_debug.h"
......
/*
This file is part of KHelpCenter.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KHC_DOCENTRY_H
#define KHC_DOCENTRY_H
......
......@@ -75,8 +75,8 @@ Glossary::Glossary( QWidget *parent ) : QTreeWidget( parent )
m_initialized = false;
setFrameStyle( QFrame::NoFrame );
connect( this, SIGNAL( itemActivated(QTreeWidgetItem *, int) ),
this, SLOT( treeItemSelected( QTreeWidgetItem * ) ) );
connect( this, SIGNAL(itemActivated(QTreeWidgetItem*,int)),
this, SLOT(treeItemSelected(QTreeWidgetItem*)) );
setHeaderHidden(true);
setAllColumnsShowFocus( true );
......@@ -146,8 +146,8 @@ void Glossary::rebuildGlossaryCache()
mainWindow->statusBar()->showMessage( i18n( "Rebuilding glossary cache..." ) );
KProcess *meinproc = new KProcess;
connect( meinproc, SIGNAL( finished(int,QProcess::ExitStatus) ),
this, SLOT( meinprocFinished(int,QProcess::ExitStatus) ) );
connect( meinproc, SIGNAL(finished(int,QProcess::ExitStatus)),
this, SLOT(meinprocFinished(int,QProcess::ExitStatus)) );
*meinproc << QStandardPaths::findExecutable(QStringLiteral( "meinproc5" ) );
*meinproc << QLatin1String( "--output" ) << m_cacheFile;
......
......@@ -79,7 +79,7 @@ namespace KHC {
{
Q_OBJECT
public:
Glossary( QWidget *parent );
explicit Glossary( QWidget *parent );
virtual ~Glossary();
const GlossaryEntry &entry( const QString &id ) const;
......
......@@ -70,11 +70,11 @@ void History::setupActions( KActionCollection *coll )
connect(m_backAction, &KToolBarPopupAction::triggered, this, &History::back);
connect( m_backAction->menu(), SIGNAL( triggered( QAction* ) ),
SLOT( backActivated( QAction* ) ) );
connect( m_backAction->menu(), SIGNAL(triggered(QAction*)),
SLOT(backActivated(QAction*)) );
connect( m_backAction->menu(), SIGNAL( aboutToShow() ),
SLOT( fillBackMenu() ) );
connect( m_backAction->menu(), SIGNAL(aboutToShow()),
SLOT(fillBackMenu()) );
m_backAction->setEnabled( false );
......@@ -84,11 +84,11 @@ void History::setupActions( KActionCollection *coll )
connect(m_forwardAction, &KToolBarPopupAction::triggered, this, &History::forward);
connect( m_forwardAction->menu(), SIGNAL( triggered( QAction* ) ),
SLOT( forwardActivated( QAction* ) ) );
connect( m_forwardAction->menu(), SIGNAL(triggered(QAction*)),
SLOT(forwardActivated(QAction*)) );
connect( m_forwardAction->menu(), SIGNAL( aboutToShow() ),
SLOT( fillForwardMenu() ) );
connect( m_forwardAction->menu(), SIGNAL(aboutToShow()),
SLOT(fillForwardMenu()) );
m_forwardAction->setEnabled( false );
}
......@@ -192,7 +192,7 @@ void History::goHistoryActivated( int steps )
if ( m_goBuffer )
return;
m_goBuffer = steps;
QTimer::singleShot( 0, this, SLOT( goHistoryDelayed() ) );
QTimer::singleShot( 0, this, SLOT(goHistoryDelayed()) );
}
void History::goHistoryDelayed()
......
......@@ -81,8 +81,8 @@ class LogDialog : public QDialog
mainLayout->addWidget( mTextView );
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Close );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
connect( buttonBox, SIGNAL(accepted()), this, SLOT(accept()) );
connect( buttonBox, SIGNAL(rejected()), this, SLOT(reject()) );
mainLayout->addWidget( buttonBox );
KConfigGroup cg = KSharedConfig::openConfig()->group( "logdialog" );
......@@ -115,21 +115,21 @@ MainWindow::MainWindow()
mSplitter = new QSplitter( this );
mDoc = new View( mSplitter, this, KHTMLPart::DefaultGUI, actionCollection() );
connect( mDoc, SIGNAL( setWindowCaption( const QString & ) ),
SLOT( setWindowTitle( const QString & ) ) );
connect( mDoc, SIGNAL( setStatusBarText( const QString & ) ),
SLOT( statusBarRichTextMessage( const QString & ) ) );
connect( mDoc, SIGNAL( onURL( const QString & ) ),
SLOT( statusBarMessage( const QString & ) ) );
connect( mDoc, SIGNAL( started( KIO::Job * ) ),
SLOT( slotStarted( KIO::Job * ) ) );
connect( mDoc, SIGNAL( completed() ),
SLOT( documentCompleted() ) );
connect( mDoc, SIGNAL( searchResultCacheAvailable() ),
SLOT( enableLastSearchAction() ) );
connect( mDoc, SIGNAL( selectionChanged() ),
SLOT( enableCopyTextAction() ) );
connect( mDoc, SIGNAL(setWindowCaption(QString)),
SLOT(setWindowTitle(QString)) );
connect( mDoc, SIGNAL(setStatusBarText(QString)),
SLOT(statusBarRichTextMessage(QString)) );
connect( mDoc, SIGNAL(onURL(QString)),
SLOT(statusBarMessage(QString)) );
connect( mDoc, SIGNAL(started(KIO::Job*)),
SLOT(slotStarted(KIO::Job*)) );
connect( mDoc, SIGNAL(completed()),
SLOT(documentCompleted()) );
connect( mDoc, SIGNAL(searchResultCacheAvailable()),
SLOT(enableLastSearchAction()) );
connect( mDoc, SIGNAL(selectionChanged()),
SLOT(enableCopyTextAction()) );
statusBar()->showMessage(i18n("Preparing Index"));
......@@ -141,12 +141,12 @@ MainWindow::MainWindow()
mNavigator = new Navigator( mDoc, mSplitter );
mNavigator->setObjectName( QStringLiteral("nav") );
connect( mNavigator, SIGNAL( itemSelected( const QString & ) ),
SLOT( viewUrl( const QString & ) ) );
connect( mNavigator, SIGNAL( glossSelected( const GlossaryEntry & ) ),
SLOT( slotGlossSelected( const GlossaryEntry & ) ) );
connect( mNavigator, SIGNAL( setStatusBarText( const QString & ) ),
SLOT( statusBarMessage( const QString & ) ) );
connect( mNavigator, SIGNAL(itemSelected(QString)),
SLOT(viewUrl(QString)) );
connect( mNavigator, SIGNAL(glossSelected(GlossaryEntry)),
SLOT(slotGlossSelected(GlossaryEntry)) );
connect( mNavigator, SIGNAL(setStatusBarText(QString)),
SLOT(statusBarMessage(QString)) );
mSplitter->insertWidget(0, mNavigator);
mSplitter->setStretchFactor(mSplitter->indexOf(mNavigator), 0);
......@@ -176,10 +176,10 @@ MainWindow::MainWindow()
History::self().installMenuBarHook( this );
connect( &History::self(), SIGNAL( goInternalUrl( const QUrl & ) ),
mNavigator, SLOT( openInternalUrl( const QUrl & ) ) );
connect( &History::self(), SIGNAL( goUrl( const QUrl & ) ),
mNavigator, SLOT( selectItem( const QUrl & ) ) );
connect( &History::self(), SIGNAL(goInternalUrl(QUrl)),
mNavigator, SLOT(openInternalUrl(QUrl)) );
connect( &History::self(), SIGNAL(goUrl(QUrl)),
mNavigator, SLOT(selectItem(QUrl)) );
statusBarMessage(i18n("Ready"));
enableCopyTextAction();
......@@ -228,22 +228,22 @@ void MainWindow::writeConfig()
void MainWindow::setupActions()
{
actionCollection()->addAction( KStandardAction::Quit, this, SLOT( close() ) );
actionCollection()->addAction( KStandardAction::Print, this, SLOT( print() ) );
actionCollection()->addAction( KStandardAction::Quit, this, SLOT(close()) );
actionCollection()->addAction( KStandardAction::Print, this, SLOT(print()) );
QAction *prevPage = actionCollection()->addAction( QStringLiteral("prevPage") );
prevPage->setText( i18n( "Previous Page" ) );
actionCollection()->setDefaultShortcut(prevPage, Qt::CTRL+Qt::Key_PageUp );
prevPage->setWhatsThis( i18n( "Moves to the previous page of the document" ) );
connect( prevPage, SIGNAL( triggered() ), mDoc, SLOT( prevPage() ) );
connect( prevPage, SIGNAL(triggered()), mDoc, SLOT(prevPage()) );
QAction *nextPage = actionCollection()->addAction( QStringLiteral("nextPage") );
nextPage->setText( i18n( "Next Page" ) );
actionCollection()->setDefaultShortcut(nextPage, Qt::CTRL + Qt::Key_PageDown );
nextPage->setWhatsThis( i18n( "Moves to the next page of the document" ) );
connect( nextPage, SIGNAL( triggered() ), mDoc, SLOT( nextPage() ) );
connect( nextPage, SIGNAL(triggered()), mDoc, SLOT(nextPage()) );
QAction *home = KStandardAction::home( this, SLOT( slotShowHome() ), this );
QAction *home = KStandardAction::home( this, SLOT(slotShowHome()), this );
actionCollection()->addAction( home->objectName(), home );
home->setText(i18n("Table of &Contents"));
home->setToolTip(i18n("Table of contents"));
......@@ -255,34 +255,34 @@ void MainWindow::setupActions()
mLastSearchAction = actionCollection()->addAction( QLatin1String("lastsearch") );
mLastSearchAction->setText( i18n("&Last Search Result") );
mLastSearchAction->setEnabled( false );
connect( mLastSearchAction, SIGNAL( triggered() ), this, SLOT( slotLastSearch() ) );
connect( mLastSearchAction, SIGNAL(triggered()), this, SLOT(slotLastSearch()) );
/*
QAction *action = actionCollection()->addAction( QLatin1String("build_index") );
action->setText( i18n("Build Search Index...") );
connect( action, SIGNAL( triggered() ), mNavigator, SLOT( showIndexDialog() ) );
connect( action, SIGNAL(triggered()), mNavigator, SLOT(showIndexDialog()) );
KConfigGroup debugGroup( KSharedConfig::openConfig(), "Debug" );
if ( debugGroup.readEntry( "SearchErrorLog", false) ) {
action = actionCollection()->addAction(QLatin1String("show_search_stderr"));
action->setText( i18n("Show Search Error Log") );
connect( action, SIGNAL( triggered() ), this, SLOT( showSearchStderr() ) );
connect( action, SIGNAL(triggered()), this, SLOT(showSearchStderr()) );
}
*/
History::self().setupActions( actionCollection() );
QAction *action = actionCollection()->addAction(QLatin1String("configure_fonts" ));
action->setText( i18n( "Configure Fonts..." ) );
connect( action, SIGNAL( triggered() ), this, SLOT( slotConfigureFonts() ) );
connect( action, SIGNAL(triggered()), this, SLOT(slotConfigureFonts()) );
action = actionCollection()->addAction(QLatin1String("incFontSizes"));
action->setText( i18n( "Increase Font Sizes" ) );
action->setIcon( QIcon::fromTheme( QLatin1String("zoom-in") ) );
connect( action, SIGNAL( triggered() ), this, SLOT( slotIncFontSizes() ) );
connect( action, SIGNAL(triggered()), this, SLOT(slotIncFontSizes()) );
action = actionCollection()->addAction(QLatin1String("decFontSizes"));
action->setText( i18n( "Decrease Font Sizes" ) );
action->setIcon( QIcon::fromTheme( QLatin1String("zoom-out") ) );
connect( action, SIGNAL( triggered() ), this, SLOT( slotDecFontSizes() ) );
connect( action, SIGNAL(triggered()), this, SLOT(slotDecFontSizes()) );
}
void MainWindow::setupBookmarks()
......@@ -294,7 +294,7 @@ void MainWindow::setupBookmarks()
KBookmarkManager *manager = KBookmarkManager::managerForFile( file, QStringLiteral( "khelpcenter" ) );
manager->setParent( this );
BookmarkOwner *owner = new BookmarkOwner( mDoc, manager );
connect( owner, SIGNAL( openUrl( const QUrl & ) ), this, SLOT( openUrl( const QUrl & ) ) );
connect( owner, SIGNAL(openUrl(QUrl)), this, SLOT(openUrl(QUrl)) );
KActionMenu *actmenu = actionCollection()->add<KActionMenu>( QStringLiteral( "bookmarks" ) );
actmenu->setText( i18nc( "@title:menu", "&Bookmarks" ) );
KBookmarkMenu *bookmenu = new KBookmarkMenu( manager, owner, actmenu->menu(), actionCollection() );
......@@ -314,8 +314,8 @@ void MainWindow::print()
void MainWindow::slotStarted(KIO::Job *job)
{
if (job)
connect(job, SIGNAL(infoMessage( KJob *, const QString &, const QString &)),
SLOT(slotInfoMessage(KJob *, const QString &)));
connect(job, SIGNAL(infoMessage(KJob*,QString,QString)),
SLOT(slotInfoMessage(KJob*,QString)));
History::self().updateActions();
}
......
/*
* This file is part of the KDE Help Center
*
* Copyright (C) 1999 Matthias Elter (me@kde.org)
* 2001 Stephan Kulow (coolo@kde.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KHC_MAINWINDOW_H
#define KHC_MAINWINDOW_H
......
......@@ -658,8 +658,8 @@ void Navigator::slotDoIndexWork()
*mIndexingProc << KShell::splitArgs( indexer );
connect( mIndexingProc, SIGNAL( finished( int, QProcess::ExitStatus) ),
SLOT( slotProcessExited( int, QProcess::ExitStatus) ) );
connect( mIndexingProc, SIGNAL(finished(int,QProcess::ExitStatus)),
SLOT(slotProcessExited(int,QProcess::ExitStatus)) );
mIndexingProc->start();
......
/*
This file is part of KHelpCenter.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "searchengine.h"
#include "docmetainfo.h"
......@@ -73,10 +93,10 @@ void SearchTraverser::connectHandler( SearchHandler *handler )
int count = 0;
if ( it != mConnectCount.end() ) count = *it;
if ( count == 0 ) {
connect( handler, SIGNAL( searchError( SearchHandler *, DocEntry *, const QString & ) ),
SLOT( showSearchError( SearchHandler *, DocEntry *, const QString & ) ) );
connect( handler, SIGNAL( searchFinished( SearchHandler *, DocEntry *, const QString & ) ),
SLOT( showSearchResult( SearchHandler *, DocEntry *, const QString & ) ) );
connect( handler, SIGNAL(searchError(SearchHandler*,DocEntry*,QString)),
SLOT(showSearchError(SearchHandler*,DocEntry*,QString)) );
connect( handler, SIGNAL(searchFinished(SearchHandler*,DocEntry*,QString)),
SLOT(showSearchResult(SearchHandler*,DocEntry*,QString)) );
}
mConnectCount[ handler ] = ++count;
}
......@@ -91,10 +111,10 @@ void SearchTraverser::disconnectHandler( SearchHandler *handler )
int count = *it;
--count;
if ( count == 0 ) {
disconnect( handler, SIGNAL( searchError( SearchHandler *, DocEntry *, const QString & ) ),
this, SLOT( showSearchError( SearchHandler *, DocEntry *, const QString & ) ) );
disconnect( handler, SIGNAL( searchFinished( SearchHandler *, DocEntry *, const QString & ) ),
this, SLOT( showSearchResult( SearchHandler *, DocEntry *, const QString & ) ) );
disconnect( handler, SIGNAL(searchError(SearchHandler*,DocEntry*,QString)),
this, SLOT(showSearchError(SearchHandler*,DocEntry*,QString)) );
disconnect( handler, SIGNAL(searchFinished(SearchHandler*,DocEntry*,QString)),
this, SLOT(showSearchResult(SearchHandler*,DocEntry*,QString)) );
}
mConnectCount[ handler ] = count;
}
......
/*
This file is part of KHelpCenter.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KHC_SEARCHENGINE_H
#define KHC_SEARCHENGINE_H
......@@ -68,7 +88,7 @@ class SearchEngine : public QObject
public:
enum Operation { And, Or };
SearchEngine( View * );
explicit SearchEngine( View * );
~SearchEngine();
bool initSearchHandlers();
......
......@@ -44,8 +44,8 @@ bool SearchJob::startLocal(const QString &cmdString)
mProcess = new KProcess;
*mProcess << KShell::splitArgs(cmdString);
connect( mProcess, SIGNAL( finished(int, QProcess::ExitStatus) ),
this, SLOT( searchExited(int, QProcess::ExitStatus) ) );
connect( mProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
this, SLOT(searchExited(int,QProcess::ExitStatus)) );
mProcess->setOutputChannelMode(KProcess::SeparateChannels);
mProcess->start();
......@@ -60,10 +60,10 @@ bool SearchJob::startLocal(const QString &cmdString)
bool SearchJob::startRemote(const QString &urlString)
{
KIO::TransferJob *job = KIO::get( QUrl( urlString ) );
connect( job, SIGNAL( result( KJob * ) ),
this, SLOT( slotJobResult( KJob * ) ) );
connect( job, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
this, SLOT( slotJobData( KIO::Job *, const QByteArray & ) ) );
connect( job, SIGNAL(result(KJob*)),
this, SLOT(slotJobResult(KJob*)) );
connect( job, SIGNAL(data(KIO::Job*,QByteArray)),
this, SLOT(slotJobData(KIO::Job*,QByteArray)) );
mKioJob = job;
return true;
......@@ -199,10 +199,10 @@ void ExternalProcessSearchHandler::search( DocEntry *entry, const QStringList &w
qCDebug(KHC_LOG) << "CMD:" << cmdString;
SearchJob *searchJob = new SearchJob(entry);
connect(searchJob, SIGNAL(searchFinished( SearchJob *, DocEntry *, const QString & )),
this, SLOT(slotSearchFinished( SearchJob *, DocEntry *, const QString & )));
connect(searchJob, SIGNAL(searchError( SearchJob *, DocEntry *, const QString & )),
this, SLOT(slotSearchError( SearchJob *, DocEntry *, const QString & )));
connect(searchJob, SIGNAL(searchFinished(SearchJob*,DocEntry*,QString)),
this, SLOT(slotSearchFinished(SearchJob*,DocEntry*,QString)));
connect(searchJob, SIGNAL(searchError(SearchJob*,DocEntry*,QString)),
this, SLOT(slotSearchError(SearchJob*,DocEntry*,QString)));
searchJob->startLocal(cmdString);
} else if ( !mSearchUrl.isEmpty() ) {
......@@ -212,10 +212,10 @@ void ExternalProcessSearchHandler::search( DocEntry *entry, const QStringList &w
qCDebug(KHC_LOG) << "URL:" << urlString;
SearchJob *searchJob = new SearchJob(entry);
connect(searchJob, SIGNAL(searchFinished( SearchJob *, DocEntry *, const QString & )),
this, SLOT(slotSearchFinished( SearchJob *, DocEntry *, const QString & )));
connect(searchJob, SIGNAL(searchError( SearchJob *, DocEntry *, const QString & )),
this, SLOT(slotSearchError( SearchJob *, DocEntry *, const QString & )));
connect(searchJob, SIGNAL(searchFinished(SearchJob*,DocEntry*,QString)),
this, SLOT(slotSearchFinished(SearchJob*,DocEntry*,QString)));
connect(searchJob, SIGNAL(searchError(SearchJob*,DocEntry*,QString)),
this, SLOT(slotSearchError(SearchJob*,DocEntry*,QString)));
searchJob->startRemote(urlString);
} else {
......
......@@ -40,7 +40,7 @@ namespace KHC {
class SearchJob : public QObject {
Q_OBJECT
public:
SearchJob(DocEntry *entry);
explicit SearchJob(DocEntry *entry);
~SearchJob();
bool startLocal(const QString &cmdString);
......@@ -97,7 +97,7 @@ namespace KHC {
{
Q_OBJECT
public:
ExternalProcessSearchHandler( const KConfigGroup &cg );
explicit ExternalProcessSearchHandler( const KConfigGroup &cg );
void search( DocEntry *, const QStringList &words,
int maxResults = 10,
......
......@@ -84,8 +84,8 @@ SearchWidget::SearchWidget( SearchEngine *engine, QWidget *parent )
for (int i=0; i < ScopeNum; ++i ) {
mScopeCombo->addItem( scopeSelectionLabel( i ) );
}
connect( mScopeCombo, SIGNAL( activated( int ) ),
SLOT( scopeSelectionChanged( int ) ) );
connect( mScopeCombo, SIGNAL(activated(int)),
SLOT(scopeSelectionChanged(int)) );
l = new QLabel( i18n("&Scope selection:"), this );
l->setBuddy( mScopeCombo );
......@@ -100,7 +100,7 @@ SearchWidget::SearchWidget( SearchEngine *engine, QWidget *parent )
// FIXME: Use SearchHandler on double-clicked document
#if 0
connect( mScopeListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int) ),
connect( mScopeListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
SLOT(scopeDoubleClicked(QTreeWidgetItem*)) );
#endif
connect( mScopeListView, SIGNAL(itemClicked(QTreeWidgetItem*,int)),
......
/*
This file is part of KHelpCenter.
Copyright (c) 2007 Andreas Pakulat <apaku@gmx.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <QCoreApplication>
#include <QDebug>
......
......@@ -146,8 +146,8 @@ void TOC::buildCache()
KXmlGuiWindow *mainWindow = dynamic_cast<KXmlGuiWindow *>( qobject_cast<QApplication*>(qApp)->activeWindow() );
KProcess *meinproc = new KProcess;
connect( meinproc, SIGNAL( finished( int, QProcess::ExitStatus) ),
this, SLOT( meinprocExited( int, QProcess::ExitStatus) ) );
connect( meinproc, SIGNAL(finished(int,QProcess::ExitStatus)),
this, SLOT(meinprocExited(int,QProcess::ExitStatus)) );
*meinproc << QStandardPaths::findExecutable(QStringLiteral("meinproc5"));
*meinproc << QStringLiteral("--stylesheet") << QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("khelpcenter/table-of-contents.xslt") );
......
......@@ -36,7 +36,7 @@ class TOC : public QObject
{
Q_OBJECT
public:
TOC( NavigatorItem *parentItem );
explicit TOC( NavigatorItem *parentItem );
QString application() const { return m_application; }
void setApplication( const QString &application ) { m_application = application; }
......
......@@ -33,7 +33,7 @@ class TreeBuilder : public QObject
{
Q_OBJECT
public:
TreeBuilder( QObject *parent );
explicit TreeBuilder( QObject *parent );
virtual void build( NavigatorItem *item ) = 0;
......
/*
This file is part of KHelpCenter.
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "view.h"
#include "grantleeformatter.h"
......@@ -41,10 +61,10 @@ View::View( QWidget *parentWidget, QObject *parent, KHTMLPart::GUIProfile prof,
m_fontScaleStepping = 10;
connect( this, SIGNAL( setWindowCaption( const QString