7#include <QtGui/QCursor>
8#include <QtGui/QFontDatabase>
9#include <QtGui/QFontMetrics>
10#include <QtGui/QInputDevice>
13#include <sys/utsname.h>
31 return QCursor::pos().x();
36 return QCursor::pos().y();
41 for (
const auto &inputDevice: QInputDevice::devices()) {
42 if (inputDevice->type() == QInputDevice::DeviceType::TouchScreen) {
52 struct utsname systemInfo;
54 return QString(systemInfo.machine);
62 return QFontDatabase::systemFont(QFontDatabase::FixedFont).family();
69 if (langID == QLocale::Korean) {
70 return QStringLiteral(
"NanumGothic");
73 return QStringLiteral(
"Open Sans");
81#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
84 return qgcApp()->fakeMobile();
#define QGC_LOGGING_CATEGORY(name, categoryStr)
static SettingsManager * instance()
AppSettings * appSettings() const