KDE 4 namespaces

Adam Treat manyoso at yahoo.com
Mon May 9 13:53:38 BST 2005

On Monday 09 May 2005 11:00 am, Christian Stoitner wrote:
> > You'll have the same problem with Qt then... QString and QLineEdit come
> > from differeet libs, but they both start with Q.
> > What can help for this, other than documentation, is #include
> > <QtCore/QString> vs #include <QtGui/QLineEdit>, so maybe we want to do
> > the same in KDE
> >
> > > One thing is the most important: consistency.
> >
> > ... with Qt? Then this means not using namespaces :)
> I'am also a newbe, but i think Ilkka is right.
> Why do you have to do everything like trolltech? as far as i know Qt
> doesn't use namespaces because Qt runs on embeded systems too.

Because we want (well, I'd like to see...) Qt-only developers to have a new 
look at kdelibs especially for those platforms opening up with Qt4.  Making 
KDE coding guidelines as consistent as possible with the Qt reduces the 
headaches for beginners and/or people primarly familiar with Qt.

More information about the kde-core-devel mailing list