![]() |
Qt 6.x
The Qt SDK
|
#include "androidjnimain.h"
#include "androidjnimenu.h"
#include "qandroidplatformtheme.h"
#include "qandroidplatformmenubar.h"
#include "qandroidplatformmenu.h"
#include "qandroidplatformmenuitem.h"
#include "qandroidplatformdialoghelpers.h"
#include "qandroidplatformfiledialoghelper.h"
#include <QCoreApplication>
#include <QDebug>
#include <QFileInfo>
#include <QJsonDocument>
#include <QVariant>
#include <private/qguiapplication_p.h>
#include <private/qhighdpiscaling_p.h>
#include <qandroidplatformintegration.h>
Go to the source code of this file.
Functions | |
static int | fontType (const QString &androidControl) |
static int | paletteType (const QString &androidControl) |
static void | setPaletteColor (const QVariantMap &object, QPalette &palette, QPalette::ColorRole role) |
static void | loadAndroidStyle (QPalette *defaultPalette, std::shared_ptr< AndroidStyle > &style) |
static int | paletteType (QPlatformTheme::Palette type) |
static int | fontType (QPlatformTheme::Font type) |
|
static |
Definition at line 36 of file qandroidplatformtheme.cpp.
References QPlatformTheme::CheckBoxFont, QPlatformTheme::ComboLineEditFont, QPlatformTheme::ComboMenuItemFont, QPlatformTheme::ItemViewFont, QPlatformTheme::LabelFont, QPlatformTheme::ListViewFont, QPlatformTheme::PushButtonFont, QPlatformTheme::RadioButtonFont, and QPlatformTheme::SystemFont.
Referenced by QQC2_NAMESPACE::QMacStyle::drawPrimitive(), QMacStyle::drawPrimitive(), QAndroidPlatformTheme::font(), and loadAndroidStyle().
|
inlinestatic |
Definition at line 464 of file qandroidplatformtheme.cpp.
References QPlatformTheme::LabelFont, QPlatformTheme::PushButtonFont, QPlatformTheme::SystemFont, and QPlatformTheme::ToolButtonFont.
|
static |
Definition at line 191 of file qandroidplatformtheme.cpp.
References QFont::AnyStyle, QPlatformTheme::FixedFont, font, fontType(), QPalette::Highlight, QHighDpiScaling::isActive(), QByteArray::isEmpty(), item, QPalette::Link, AndroidStyle::loadStyleData(), QFont::Monospace, palette, paletteType(), QtAndroid::pixelDensity(), QFont::PreferMatch, QRgb, qWarning, QFont::SansSerif, QFont::Serif, QFont::setBold(), QGuiApplication::setFont(), QFont::setItalic(), setPaletteColor(), QFont::setPixelSize(), QFont::setStyleHint(), QPlatformTheme::SystemFont, QPlatformTheme::SystemPalette, QJsonValueConstRef::toDouble(), QString::toLatin1(), QJsonValueConstRef::toObject(), QJsonValueConstRef::toString(), QJsonObject::toVariantMap(), QJsonObject::const_iterator::value(), QPalette::Window, and QPalette::WindowText.
Referenced by QAndroidPlatformTheme::updateStyle().
|
static |
Definition at line 59 of file qandroidplatformtheme.cpp.
References QPlatformTheme::ButtonPalette, QPlatformTheme::CheckBoxPalette, QPlatformTheme::ComboBoxPalette, QPlatformTheme::ItemViewPalette, QPlatformTheme::LabelPalette, QPlatformTheme::RadioButtonPalette, QPlatformTheme::SystemPalette, and QPlatformTheme::TextLineEditPalette.
Referenced by QGtk3Json::load(), loadAndroidStyle(), and QAndroidPlatformTheme::palette().
|
inlinestatic |
Definition at line 426 of file qandroidplatformtheme.cpp.
References QPlatformTheme::ButtonPalette, QPlatformTheme::CheckBoxPalette, QPlatformTheme::ComboBoxPalette, QPlatformTheme::ItemViewPalette, QPlatformTheme::RadioButtonPalette, QPlatformTheme::SystemPalette, QPlatformTheme::TextEditPalette, QPlatformTheme::TextLineEditPalette, and QPlatformTheme::ToolButtonPalette.
|
static |
Definition at line 80 of file qandroidplatformtheme.cpp.
References QPalette::Active, QPalette::BrightText, QPalette::ButtonText, QPalette::Current, QPalette::Disabled, QPalette::HighlightedText, QPalette::Inactive, palette, QRgb, QPalette::Text, toInt(), and QPalette::WindowText.
Referenced by loadAndroidStyle().