Source code |
|
1 2 3 4 5 6 7 8 9 10 |
#include <kmimetype.h> #include <kurl.h> #include <kdebug.h> int main() { KURL test("/home/diederik/.vimrc"); kdDebug() << "The url is " << test << endl; kdDebug() << "The icon is " << KMimeType::iconForURL(test) << endl; } |
This post has been edited 2 times, last edit by "vdboor" (Jul 15th 2005, 1:06pm)
Quoted
Originally posted by anda_skoa
Try creating a KApplication instance or at least a KInstance instance at the beginning of main().
Cheers,
_
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools