mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
[launcher] add more places for finger scrolling
This commit is contained in:
committed by
Andrey Filipenkov
parent
59b40c7871
commit
ed6ab19818
@@ -12,7 +12,20 @@
|
||||
|
||||
#include "../lib/CConfigHandler.h"
|
||||
|
||||
void Helper::loadSettings()
|
||||
#include <QObject>
|
||||
#include <QScroller>
|
||||
|
||||
namespace Helper
|
||||
{
|
||||
void loadSettings()
|
||||
{
|
||||
settings.init("config/settings.json", "vcmi:settings");
|
||||
}
|
||||
|
||||
void enableScrollBySwiping(QObject * scrollTarget)
|
||||
{
|
||||
#ifdef VCMI_MOBILE
|
||||
QScroller::grabGesture(scrollTarget, QScroller::LeftMouseButtonGesture);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user