CMake option to enabkle touch-friendly support. Disable by default (apart from in Windows) as it only really works under windows.

This commit is contained in:
craig.p.drummond
2015-04-05 20:09:16 +00:00
parent 9c959d930b
commit 5d7f2ea2d6
10 changed files with 41 additions and 12 deletions

View File

@@ -951,6 +951,7 @@ Utils::Desktop Utils::currentDe()
return Other;
}
#ifdef ENABLE_TOUCH_SUPPORT
static bool isTouchFriendly=false;
void Utils::setTouchFriendly(bool t)
{
@@ -961,6 +962,7 @@ bool Utils::touchFriendly()
{
return isTouchFriendly;
}
#endif
QPainterPath Utils::buildPath(const QRectF &r, double radius)
{