This is a discussion on Re: detecting names of kioslave directories - KDE ; Carl wrote: > Hi all, > = > I'm a computer science student learning C++. I'm in the process of > learning > QT/KDE. I'm trying to hack a program called kmetabar. I need the > application to detect if ...
Carl wrote:
> Hi all,
> =
> I'm a computer science student learning C++. I'm in the process of
> learning
> QT/KDE. I'm trying to hack a program called kmetabar. I need the
> application to detect if the current directory is trash:/ . Currently the
> code is
> =
> const KURL url =3D item.url();
> QString name =3D item.name();
> =
> This works great for everything but KIOslaves. When entering trash:/ or
> any
> other KIOslave, name is empty. So the application assumes that it is the
> root directory. Any help pointing me in the right direction would be
> appreciated. Thank you.
url.protocol() should help you.
Aur=E9lien
=
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<