Kdebugsettings in kdereview

laurent Montel montel at kde.org
Tue Apr 14 05:46:14 BST 2015


Ok It's in kdereview from the 23 march.
Is it ok to move it ?

Regards

Le Monday 23 March 2015 08:19:40 laurent Montel a écrit :
> Le Sunday 22 March 2015 22:27:57 Albert Astals Cid a écrit :
> > El Diumenge, 22 de març de 2015, a les 21:06:15, laurent Montel va 
escriure:
> > > Le Sunday 22 March 2015 13:43:25 Albert Astals Cid a écrit :
> > > > El Diumenge, 22 de març de 2015, a les 08:40:42, laurent Montel va
> > 
> > escriure:
> > > > > Hi,
> > > > > Now kdebugsettings is in kdereview.
> > > > > All features are implemented before 1.0.
> > > > > This application allows to configure qloggingcategories.
> > > > 
> > > > Is this a replacement of kdebugdialog? Or it can't do kdebug stuff and
> > > > thus
> > > > we need both?
> > > 
> > > It's not a replacement for kdebugdialog.
> > > Kdebugdialog modified kdebug and qdebug doesn't use same method.
> > > So not it's not a replacement.
> > > 
> > > > > I would like to move it in kdeutils or kdeadmin in the future.
> > > > > 
> > > > > Please use it and reports bug about it.
> > > > 
> > > > So we are back to having a huge file with all the categories on it?
> > > 
> > > Yes because qt doesn't support as in kde4 a dynamic categories.
> > 
> > That's quite unfortunate :/
> > 
> > Is there at least a way so that we don't have to write everything in that
> > kde.categories file but let's say that okular installs it's own categories
> > file?
> 
> Yes we have it.
>     const QStringList dirs =
> QStandardPaths::locateAll(QStandardPaths::GenericConfigLocation,
> QStringLiteral("qdebug.categories/"), QStandardPaths::LocateDirectory);
>     Q_FOREACH (const QString &dir, dirs) {
>         const QStringList fileNames = QDir(dir).entryList(QStringList() <<
> QStringLiteral("*.categories"));
>         Q_FOREACH (const QString &file, fileNames) {
>             Category::List categoriesLocal =
> KDebugSettingsUtil::readLoggingCategories(dir + QLatin1Char('/') + file);
>             categories << categoriesLocal;
>         }
> 
>     }
> We can load file with extension .categories.
> 
> Regards
> 
> > Cheers,
> > 
> >   Albert

-- 
Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53,  http://www.kdab.fr






More information about the kde-core-devel mailing list