Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qandroidplatformtheme.cpp File Reference

(95d4e6bababfeb36fa8a355a8487b64eb3ffb587)

#include "androidjnimain.h"
#include "androidjnimenu.h"
#include "qandroidplatformtheme.h"
#include "qandroidplatformiconengine.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>
+ Include dependency graph for qandroidplatformtheme.cpp:

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)
 

Function Documentation

◆ fontType() [1/2]

static int fontType ( const QString & androidControl)
static

◆ fontType() [2/2]

◆ loadAndroidStyle()

static void loadAndroidStyle ( QPalette * defaultPalette,
std::shared_ptr< AndroidStyle > & style )
static

Definition at line 190 of file qandroidplatformtheme.cpp.

References QFont::AnyStyle, QPlatformTheme::FixedFont, font, fontType(), QPalette::Highlight, QHighDpiScaling::isActive(), 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, QPalette::Window, and QPalette::WindowText.

Referenced by QAndroidPlatformTheme::updateStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paletteType() [1/2]

static int paletteType ( const QString & androidControl)
static

Definition at line 62 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().

+ Here is the caller graph for this function:

◆ paletteType() [2/2]

◆ setPaletteColor()

static void setPaletteColor ( const QVariantMap & object,
QPalette & palette,
QPalette::ColorRole role )
static

Definition at line 83 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: