[kcalcore] Port kcalcore to Qt 5