Drop accidentally committed code
This commit is contained in:
parent
08b70f3bdb
commit
08b42b8505
@ -1,22 +1,6 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
#define PLATFORMHELPER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QQuickWindow>
|
||||
|
||||
class PlatformHelper : public QObject
|
||||
{
|
||||
@ -36,7 +35,6 @@ public:
|
||||
|
||||
Q_INVOKABLE virtual void vibrate(HapticsFeedback feedbackType) = 0;
|
||||
|
||||
Q_INVOKABLE QVariantMap getSafeAreaMargins(QQuickWindow *window);
|
||||
signals:
|
||||
void permissionsRequestFinished();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user