4#ifndef QOHOSPLATFORMTHEME_H
5#define QOHOSPLATFORMTHEME_H
7#include <QtCore/qhash.h>
8#include <QtCore/qmap.h>
9#include <QtGui/qpalette.h>
10#include <qohosplugincore.h>
11#include <qpa/qplatformtheme.h>
12#include <qpa/qplatformdialoghelper.h>
18using QOhosSupplier = std::function<T()>;
39 const QFont *
font(Font type)
const override;
46 QHash<Font, QFont> m_fonts;
47 int m_wheelScrollLines;
48 QOhosSupplier<QOhosOptional<
bool>> m_ohosConfigDarkModeFlagSupplier;
virtual QOhosOptional< QOhosQtKeyEvent > tryConvertToQOhosQtKeyEvent() const =0
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
Combined button and popup list for selecting options.
QRectF calculateTouchPointArea(const QPointF &clickPoint)
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
QOhosOptional< void > makeEmptyQOhosOptional()