diff --git a/kdepasswd/kcm/main.cpp b/kdepasswd/kcm/main.cpp index 8fc5bb57b4..987bd95773 100644 --- a/kdepasswd/kcm/main.cpp +++ b/kdepasswd/kcm/main.cpp @@ -58,12 +58,9 @@ typedef KGenericFactory Factory; K_EXPORT_COMPONENT_FACTORY( kcm_useraccount, Factory("useraccount") ) -KCMUserAccount::KCMUserAccount( QWidget *parent, const char *name, - const QStringList &) +KCMUserAccount::KCMUserAccount( QWidget *parent, const QStringList &) : KCModule( Factory::instance(), parent) { - Q_UNUSED(name); - QVBoxLayout *topLayout = new QVBoxLayout(this); _mw = new MainWidget(this); topLayout->addWidget( _mw ); diff --git a/kdepasswd/kcm/main.h b/kdepasswd/kcm/main.h index 0514946baa..60e570d86f 100644 --- a/kdepasswd/kcm/main.h +++ b/kdepasswd/kcm/main.h @@ -43,8 +43,7 @@ class KCMUserAccount : public KCModule Q_OBJECT public: - KCMUserAccount(QWidget* parent, const char* name = "KCMUserAccount", - const QStringList& list=QStringList()); + KCMUserAccount(QWidget* parent, const QStringList& list=QStringList()); ~KCMUserAccount(); /** diff --git a/keditbookmarks/actionsimpl.cpp b/keditbookmarks/actionsimpl.cpp index 29bdcbf911..ae63ea91b1 100644 --- a/keditbookmarks/actionsimpl.cpp +++ b/keditbookmarks/actionsimpl.cpp @@ -34,31 +34,31 @@ #include #include -#include #include #include #include #include #include -#include -#include -#include -#include -#include -#include -#include - +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include #include #include -#include -#include - #include #include #include diff --git a/keditbookmarks/commands.cpp b/keditbookmarks/commands.cpp index 3d3b5598e3..b9e4e2f84a 100644 --- a/keditbookmarks/commands.cpp +++ b/keditbookmarks/commands.cpp @@ -152,7 +152,7 @@ EditCommand::EditCommand(const QString & address, int col, const QString & newVa if(mCol == 1) { KUrl u = KUrl::fromPathOrURL(newValue); - mNewValue = u.url(0); + mNewValue = u.url( KUrl::LeaveTrailingSlash ); } else mNewValue = newValue; @@ -235,7 +235,7 @@ void EditCommand::modify(QString newValue) if(mCol == 1) { KUrl u = KUrl::fromPathOrURL(newValue); - mNewValue = u.url(0); + mNewValue = u.url( KUrl::LeaveTrailingSlash ); } else mNewValue = newValue; diff --git a/keditbookmarks/toplevel.cpp b/keditbookmarks/toplevel.cpp index 6d7632001d..638633ac8a 100644 --- a/keditbookmarks/toplevel.cpp +++ b/keditbookmarks/toplevel.cpp @@ -37,24 +37,22 @@ #include #include -#include -#include - -#include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include - -#include - -#include -#include #include #include diff --git a/kfind/kfinddlg.cpp b/kfind/kfinddlg.cpp index 20764e1fa0..5e916da869 100644 --- a/kfind/kfinddlg.cpp +++ b/kfind/kfinddlg.cpp @@ -242,7 +242,7 @@ void KfindDlg::slotDeleteItem(const QString& file) iter=win->firstChild(); while( iter ) { - iterwithpath=query->url().path(+1)+iter->text(1)+iter->text(0); + iterwithpath=query->url().path(KUrl::AddTrailingSlash)+iter->text(1)+iter->text(0); if(iterwithpath==file) { @@ -260,12 +260,12 @@ void KfindDlg::slotNewItems( const QString& file ) Q3ListViewItem *checkiter; QString checkiterwithpath; - if(file.indexOf(query->url().path(+1))==0) + if(file.indexOf(query->url().path(KUrl::AddTrailingSlash))==0) { kDebug()<firstChild(); while( checkiter ) { - checkiterwithpath=query->url().path(+1)+checkiter->text(1)+checkiter->text(0); + checkiterwithpath=query->url().path(KUrl::AddTrailingSlash)+checkiter->text(1)+checkiter->text(0); if(file==checkiterwithpath) return; checkiter = checkiter->nextSibling(); diff --git a/kfind/kfindpart.cpp b/kfind/kfindpart.cpp index 7252083d6a..85e4a8b134 100644 --- a/kfind/kfindpart.cpp +++ b/kfind/kfindpart.cpp @@ -33,19 +33,15 @@ class KonqDirPart; typedef KParts::GenericFactory KFindFactory; K_EXPORT_COMPONENT_FACTORY( libkfindpart, KFindFactory ) -KFindPart::KFindPart( QWidget * parentWidget, const char *widgetName, - QObject *parent, const char *name , - const QStringList & /*args*/ ) +KFindPart::KFindPart( QWidget * parentWidget, QObject *parent, const QStringList & /*args*/ ) : KonqDirPart (parent)/*KParts::ReadOnlyPart*/ { - setObjectName( name ); - setInstance( KFindFactory::instance() ); setBrowserExtension( new KonqDirPartBrowserExtension( this ) ); kDebug() << "KFindPart::KFindPart " << this << endl; - m_kfindWidget = new Kfind( parentWidget, widgetName ); + m_kfindWidget = new Kfind( parentWidget ); m_kfindWidget->setMaximumHeight(m_kfindWidget->minimumSizeHint().height()); const KFileItem *item = ((KonqDirPart*)parent)->currentItem(); kDebug() << "Kfind: currentItem: " << ( item ? item->url().path().toLocal8Bit() : QString("null") ) << endl; diff --git a/kfind/kfindpart.h b/kfind/kfindpart.h index 1be096ce2e..96f2aa8c81 100644 --- a/kfind/kfindpart.h +++ b/kfind/kfindpart.h @@ -44,8 +44,7 @@ class KFindPart : public KonqDirPart//KParts::ReadOnlyPart Q_OBJECT Q_PROPERTY( bool showsResult READ showsResult ) public: - KFindPart( QWidget * parentWidget, const char *widgetName, - QObject *parent, const char *name, const QStringList & /*args*/ ); + KFindPart( QWidget * parentWidget, QObject *parent, const QStringList & /*args*/ ); virtual ~KFindPart(); static KAboutData *createAboutData(); diff --git a/kfind/kfwin.cpp b/kfind/kfwin.cpp index 394d05ba17..425203490a 100644 --- a/kfind/kfwin.cpp +++ b/kfind/kfwin.cpp @@ -159,7 +159,7 @@ QString KfindWindow::reducedDir(const QString& fullDir) void KfindWindow::beginSearch(const KUrl& baseUrl) { kDebug()<exactMatch( file->url().fileName( true ) ) ) ; + matched = matched || ( reg == 0L ) || ( reg->exactMatch( file->url().fileName( KUrl::IgnoreTrailingSlash ) ) ) ; } if (!matched) diff --git a/kwrite/kwritemain.cpp b/kwrite/kwritemain.cpp index dd4beba2cc..518932432a 100644 --- a/kwrite/kwritemain.cpp +++ b/kwrite/kwritemain.cpp @@ -29,34 +29,32 @@ #include -#include -#include #include -#include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include +#include #include #include diff --git a/nsplugins/plugin_part.cpp b/nsplugins/plugin_part.cpp index 3a6272f784..17101bdc45 100644 --- a/nsplugins/plugin_part.cpp +++ b/nsplugins/plugin_part.cpp @@ -170,13 +170,12 @@ PluginFactory::~PluginFactory() s_instance = 0; } -KParts::Part * PluginFactory::createPartObject(QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name, +KParts::Part * PluginFactory::createPartObject(QWidget *parentWidget, QObject *parent, const char *classname, const QStringList &args) { Q_UNUSED(classname) kDebug(1432) << "PluginFactory::create" << endl; - KParts::Part *obj = new PluginPart(parentWidget, widgetName, parent, name, args); + KParts::Part *obj = new PluginPart(parentWidget, parent, args); return obj; } @@ -200,8 +199,7 @@ KAboutData *PluginFactory::aboutData() /**************************************************************************/ -PluginPart::PluginPart(QWidget *parentWidget, const char *widgetName, QObject *parent, - const char*, const QStringList &args) +PluginPart::PluginPart(QWidget *parentWidget, QObject *parent, const QStringList &args) : KParts::ReadOnlyPart(parent), _widget(0), _args(args), _destructed(0L) { @@ -228,7 +226,6 @@ PluginPart::PluginPart(QWidget *parentWidget, const char *widgetName, QObject *p // create a canvas to insert our widget _canvas = new PluginCanvasWidget( parentWidget ); - _canvas->setObjectName( widgetName ); //_canvas->setFocusPolicy( QWidget::ClickFocus ); _canvas->setFocusPolicy( Qt::WheelFocus ); setWidget(_canvas); diff --git a/nsplugins/plugin_part.h b/nsplugins/plugin_part.h index 7e590f6d0d..c22f47db5a 100644 --- a/nsplugins/plugin_part.h +++ b/nsplugins/plugin_part.h @@ -67,8 +67,7 @@ public: PluginFactory(); virtual ~PluginFactory(); - virtual KParts::Part * createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, - QObject *parent = 0, const char *name = 0, + virtual KParts::Part * createPartObject(QWidget *parentWidget = 0, QObject *parent = 0, const char *classname = "KParts::Part", const QStringList &args = QStringList()); @@ -102,8 +101,8 @@ class PluginPart: public KParts::ReadOnlyPart { Q_OBJECT public: - PluginPart(QWidget *parentWidget, const char *widgetName, QObject *parent, - const char *name, const QStringList &args = QStringList()); + PluginPart(QWidget *parentWidget, QObject *parent, + const QStringList &args = QStringList()); virtual ~PluginPart(); void postURL(const QString& url, const QString& target, const QByteArray& data, const QString& mime);