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

@@ -178,11 +178,11 @@ InterfaceSettings::InterfaceSettings(QWidget *p)
connect(playlistsView, SIGNAL(currentIndexChanged(int)), SLOT(playlistsViewChanged()));
connect(playQueueView, SIGNAL(currentIndexChanged(int)), SLOT(playQueueViewChanged()));
connect(forceSingleClick, SIGNAL(toggled(bool)), SLOT(forceSingleClickChanged()));
#ifdef Q_OS_MAC // No touch screen Macs?
#ifdef ENABLE_TOUCH_SUPPORT
connect(touchFriendly, SIGNAL(toggled(bool)), SLOT(touchFriendlyChanged()));
#else
REMOVE(touchFriendly)
REMOVE(touchFriendlyNoteLabel)
#else
connect(touchFriendly, SIGNAL(toggled(bool)), SLOT(touchFriendlyChanged()));
#endif
connect(views, SIGNAL(itemChanged(QListWidgetItem*)), SLOT(viewItemChanged(QListWidgetItem*)));