El Divendres, 19 d'octubre de 2012, a les 19:55:45, Bogdan Cristea va escriure: > On Friday 19 October 2012 17:46:01 Albert Astals Cid wrote: > > One would say that on desktop you want okular to have a higher initial > > preference and the reverse on touch systems, but how do we do that? with a > > cmake switch? > > You could test this with a cpp file called from cmake (provided that > QtMobility is available), something like this > > bool hasTouch() { > QSystemDeviceInfo systemInfo; > QSystemDeviceInfo::InputMethodFlags flags = systemInfo.inputMethodType(); > return ((flags & (QSystemDeviceInfo::SingleTouch | > QSystemDeviceInfo::MultiTouch)) != 0) ? true : false; > }
That doesn't really help with the problem since you can't embed C++ code in a .desktop file ;-) Cheers, Albert _______________________________________________ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel