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
qquickstylehelper.cpp File Reference

(d93ca833f65893653071d7ba33fd129fe3db53dc)

#include "qquickstylehelper_p.h"
#include "qquickstyleoption.h"
#include "qquickstyle_p.h"
#include <QtCore/qmath.h>
#include <QtGui/qpainter.h>
#include <QtGui/qpixmapcache.h>
#include <QtGui/qwindow.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qmath_p.h>
#include <QtGui/private/qhexstring_p.h>
#include <qmetaobject.h>
#include <qstringbuilder.h>
+ Include dependency graph for qquickstylehelper.cpp:

Go to the source code of this file.

Namespaces

namespace  QQC2
 
namespace  QQC2::QStyleHelper
 

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT int qt_defaultDpiX ()
 
QString QQC2::QStyleHelper::uniqueName (const QString &key, const QStyleOption *option, const QSize &size)
 
qreal QQC2::QStyleHelper::dpi (const QStyleOption *option)
 
qreal QQC2::QStyleHelper::dpiScaled (qreal value, qreal dpi)
 
qreal QQC2::QStyleHelper::dpiScaled (qreal value, const QPaintDevice *device)
 
qreal QQC2::QStyleHelper::dpiScaled (qreal value, const QStyleOption *option)
 
int QQC2::QStyleHelper::calcBigLineSize (int radius)
 
static QPointF QQC2::QStyleHelper::calcRadialPos (const QStyleOptionSlider *dial, qreal offset)
 
qreal QQC2::QStyleHelper::angle (const QPointF &p1, const QPointF &p2)
 
QPolygonF QQC2::QStyleHelper::calcLines (const QStyleOptionSlider *dial)
 
void QQC2::QStyleHelper::drawDial (const QStyleOptionSlider *option, QPainter *painter)
 
void QQC2::QStyleHelper::drawBorderPixmap (const QPixmap &pixmap, QPainter *painter, const QRect &rect, int left, int top, int right, int bottom)
 
WidgetSizePolicy QQC2::QStyleHelper::widgetSizePolicy (const QStyleOption *opt)
 
QColor QQC2::QStyleHelper::backgroundColor (const QPalette &pal)
 

Variables

static const qreal QQC2::QStyleHelper::qstyleBaseDpi = 96
 

Function Documentation

◆ qt_defaultDpiX()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT int qt_defaultDpiX ( )

Definition at line 110 of file qfont.cpp.

References Qt::AA_Use96Dpi, QCoreApplication::instance(), QScreen::logicalDotsPerInchX, QGuiApplication::primaryScreen, qRound(), qt_is_tty_app, and screen.

Referenced by QFakeDevice::QFakeDevice(), QStyleHelper::dpi(), QAlphaPaintEngine::flushAndInit(), QPicture::metric(), QBlittablePlatformPixmap::metric(), QRasterPlatformPixmap::metric(), QOpenGLWidget::metric(), QTextDocument::print(), and QQuickLayoutStyleInfo::spacing().

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