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; 
}
-- 
Bogdan
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to