This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/nymea-app/platformhelper.cpp
2019-02-13 12:33:05 +01:00

23 lines
519 B
C++

#include "platformhelper.h"
#include <QtGui/qpa/qplatformwindow.h>
PlatformHelper::PlatformHelper(QObject *parent) : QObject(parent)
{
}
QVariantMap PlatformHelper::getSafeAreaMargins(QQuickWindow *window)
{
// QPlatformWindow *platformWindow = window->handle();
// QMargins margins = platformWindow->safeAreaMargins();
QVariantMap map;
// map["top"] = margins.top();
// map["right"] = margins.right();
// map["bottom"] = margins.bottom();
// map["left"] = margins.left();
return map;
}