4#ifndef QOHOSPLATFORMTHEME_H
5#define QOHOSPLATFORMTHEME_H
7#include <QtCore/qfileinfo.h>
8#include <QtCore/qhash.h>
9#include <QtCore/qmap.h>
10#include <QtGui/qicon.h>
11#include <QtGui/qpalette.h>
12#include <qohosplugincore.h>
13#include <qpa/qplatformtheme.h>
14#include <qpa/qplatformdialoghelper.h>
20using QOhosSupplier = std::function<T()>;
38 const QFont *
font(Font type)
const override;
43 QIcon fileIcon(
const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions)
const override;
47 QHash<Font, QFont> m_fonts;
48 int m_wheelScrollLines;
49 QOhosSupplier<QOhosOptional<
bool>> m_ohosConfigDarkModeFlagSupplier;
Combined button and popup list for selecting options.
QRectF calculateTouchPointArea(const QPointF &clickPoint)
QPoint determineScreenGlobalDisplayOffset(QWindow *qWindow)
QPoint makeWindowLocalPosition(const QPoint &globalPosition, QWindow *qWindow)
QPointF calculateTouchPointNormalPosition(QWindow *targetWindow, const QPointF &clickPoint)
QInputDevice * createTouchDevice(QInputDevice::DeviceType deviceType)
constexpr double fingerAreaWidth
std::shared_ptr< void > registerObjectDestroyedSignalHandler(QObject *object, QObject *context, std::function< void()> signalHandler)
QOhosOptional< QEventPoint::State > tryMapXComponentTouchEventTypeToQt(::OH_NativeXComponent_TouchEventType eventType)
constexpr double fingerAreaHeight
std::nullopt_t makeEmptyQOhosOptional()