KDAB/Charm — pull request #100 by sebsauer (2013-02-28 18:11:15+00:00)
Title: Make charm compile with Qt4 and Qt5

This 10 patches make charm compile with either Qt4 or Qt5 rather then only with Qt4 with both, the cmake and qmake, buildsystems.

Work done:
* Code got ported to compile fine with Qt4 and Qt5.
* The buildsystems got extended to proper handle Qt4 and Qt5
* Made The QtDBus logic used on keychain work also if a Qt4/Qt5 was compiled without support for QtDBus. In that case we will fall back to the unsecure keychain.

Notes:
Now we prefer Qt5 over Qt4 what means if someone has both installed Qt5 will be picked and Charm will be compiled against Qt5. That is a rather offensive change in that Charm@Qt5 wasn't as well tested as Charm@Qt4 is. So this *WILL* need more testing. Maybe it would even make sense to inverse the logic again and/or to print a bold warning if Charm is compiled against Qt5 that this is experimental. I not expect problems but who knows...

Feeback more then welcome :)