(http://api.kde.org/frameworks-api/frameworks5-apidocs/kidletime/html/kidletime_8cpp_source.html)
How can I find out the idle time of a KDE program using KIdleTime. It has function
int KIdleTime::idleTime() const
but just using
KIdleTime::idleTime()
gives compilation error "undefined reference"