1
0
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:
Laserlicht
2024-05-01 21:05:01 +03:00
committed by Andrey Filipenkov
parent 59b40c7871
commit ed6ab19818
5 changed files with 29 additions and 4 deletions

View File

@@ -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
}
}