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;
> =

> 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.



>> Visit to unsubscrib=

e <<