File indexing completed on 2024-12-15 04:00:58
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #ifndef ANDROID_STYLE_HPP 0008 #define ANDROID_STYLE_HPP 0009 0010 #include <QProxyStyle> 0011 0012 namespace glaxnimate::android { 0013 0014 class AndroidStyle : public QProxyStyle 0015 { 0016 public: 0017 using QProxyStyle::QProxyStyle; 0018 0019 int pixelMetric(PixelMetric metric, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override; 0020 0021 QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget) const override; 0022 0023 QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override; 0024 0025 QRect subElementRect(QStyle::SubElement element, const QStyleOption *option, const QWidget *widget) const override; 0026 0027 void drawControl(ControlElement element, const QStyleOption *opt, 0028 QPainter *p, const QWidget *widget) const override; 0029 0030 }; 0031 0032 } // namespace glaxnimate::android 0033 #endif // ANDROID_STYLE_HPP