Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::DeviceProfile Class Reference

#include <deviceprofile_p.h>

Collaboration diagram for qdesigner_internal::DeviceProfile:

Public Types

enum  ApplyMode { ApplyFormParent , ApplyPreview }

Public Member Functions

 DeviceProfile ()
 DeviceProfile (const DeviceProfile &)
DeviceProfileoperator= (const DeviceProfile &)
 ~DeviceProfile ()
void clear ()
QString name () const
void setName (const QString &)
bool isEmpty () const
QString fontFamily () const
void setFontFamily (const QString &)
int fontPointSize () const
void setFontPointSize (int p)
int dpiX () const
void setDpiX (int d)
int dpiY () const
void setDpiY (int d)
QString style () const
void setStyle (const QString &)
void fromSystem ()
void apply (const QDesignerFormEditorInterface *core, QWidget *widget, ApplyMode am) const
QString toString () const
QString toXml () const
bool fromXml (const QString &xml, QString *errorMessage)

Static Public Member Functions

static void systemResolution (int *dpiX, int *dpiY)
static void widgetResolution (const QWidget *w, int *dpiX, int *dpiY)
static void applyDPI (int dpiX, int dpiY, QWidget *widget)

Friends

QDESIGNER_SHARED_EXPORT bool comparesEqual (const DeviceProfile &lhs, const DeviceProfile &rhs)

Detailed Description

Definition at line 40 of file deviceprofile_p.h.

Member Enumeration Documentation

◆ ApplyMode

Enumerator
ApplyFormParent 
ApplyPreview 

Definition at line 82 of file deviceprofile_p.h.

Constructor & Destructor Documentation

◆ DeviceProfile() [1/2]

qdesigner_internal::DeviceProfile::DeviceProfile ( )

Definition at line 88 of file deviceprofile.cpp.

◆ DeviceProfile() [2/2]

qdesigner_internal::DeviceProfile::DeviceProfile ( const DeviceProfile & o)

Definition at line 93 of file deviceprofile.cpp.

◆ ~DeviceProfile()

qdesigner_internal::DeviceProfile::~DeviceProfile ( )
default

Member Function Documentation

◆ apply()

void qdesigner_internal::DeviceProfile::apply ( const QDesignerFormEditorInterface * core,
QWidget * widget,
ApplyMode am ) const

Definition at line 249 of file deviceprofile.cpp.

◆ applyDPI()

void qdesigner_internal::DeviceProfile::applyDPI ( int dpiX,
int dpiY,
QWidget * widget )
static

Definition at line 239 of file deviceprofile.cpp.

◆ clear()

void qdesigner_internal::DeviceProfile::clear ( )

Definition at line 107 of file deviceprofile.cpp.

◆ dpiX()

int qdesigner_internal::DeviceProfile::dpiX ( ) const

Definition at line 147 of file deviceprofile.cpp.

◆ dpiY()

int qdesigner_internal::DeviceProfile::dpiY ( ) const

Definition at line 157 of file deviceprofile.cpp.

◆ fontFamily()

QString qdesigner_internal::DeviceProfile::fontFamily ( ) const

Definition at line 117 of file deviceprofile.cpp.

◆ fontPointSize()

int qdesigner_internal::DeviceProfile::fontPointSize ( ) const

Definition at line 127 of file deviceprofile.cpp.

◆ fromSystem()

void qdesigner_internal::DeviceProfile::fromSystem ( )

Definition at line 167 of file deviceprofile.cpp.

◆ fromXml()

bool qdesigner_internal::DeviceProfile::fromXml ( const QString & xml,
QString * errorMessage )

Definition at line 357 of file deviceprofile.cpp.

◆ isEmpty()

bool qdesigner_internal::DeviceProfile::isEmpty ( ) const

Definition at line 112 of file deviceprofile.cpp.

◆ name()

QString qdesigner_internal::DeviceProfile::name ( ) const

Definition at line 172 of file deviceprofile.cpp.

◆ operator=()

DeviceProfile & qdesigner_internal::DeviceProfile::operator= ( const DeviceProfile & o)

Definition at line 99 of file deviceprofile.cpp.

◆ setDpiX()

void qdesigner_internal::DeviceProfile::setDpiX ( int d)

Definition at line 152 of file deviceprofile.cpp.

◆ setDpiY()

void qdesigner_internal::DeviceProfile::setDpiY ( int d)

Definition at line 162 of file deviceprofile.cpp.

◆ setFontFamily()

void qdesigner_internal::DeviceProfile::setFontFamily ( const QString & f)

Definition at line 122 of file deviceprofile.cpp.

◆ setFontPointSize()

void qdesigner_internal::DeviceProfile::setFontPointSize ( int p)

Definition at line 132 of file deviceprofile.cpp.

◆ setName()

void qdesigner_internal::DeviceProfile::setName ( const QString & n)

Definition at line 177 of file deviceprofile.cpp.

◆ setStyle()

void qdesigner_internal::DeviceProfile::setStyle ( const QString & s)

Definition at line 142 of file deviceprofile.cpp.

◆ style()

QString qdesigner_internal::DeviceProfile::style ( ) const

Definition at line 137 of file deviceprofile.cpp.

◆ systemResolution()

void qdesigner_internal::DeviceProfile::systemResolution ( int * dpiX,
int * dpiY )
static

Definition at line 182 of file deviceprofile.cpp.

◆ toString()

QString qdesigner_internal::DeviceProfile::toString ( ) const

Definition at line 200 of file deviceprofile.cpp.

◆ toXml()

QString qdesigner_internal::DeviceProfile::toXml ( ) const

Definition at line 283 of file deviceprofile.cpp.

◆ widgetResolution()

void qdesigner_internal::DeviceProfile::widgetResolution ( const QWidget * w,
int * dpiX,
int * dpiY )
static

Definition at line 193 of file deviceprofile.cpp.

◆ comparesEqual


The documentation for this class was generated from the following files: