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 39 of file deviceprofile_p.h.

Member Enumeration Documentation

◆ ApplyMode

Enumerator
ApplyFormParent 
ApplyPreview 

Definition at line 81 of file deviceprofile_p.h.

Constructor & Destructor Documentation

◆ DeviceProfile() [1/2]

qdesigner_internal::DeviceProfile::DeviceProfile ( )

Definition at line 87 of file deviceprofile.cpp.

◆ DeviceProfile() [2/2]

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

Definition at line 92 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 248 of file deviceprofile.cpp.

◆ applyDPI()

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

Definition at line 238 of file deviceprofile.cpp.

◆ clear()

void qdesigner_internal::DeviceProfile::clear ( )

Definition at line 106 of file deviceprofile.cpp.

◆ dpiX()

int qdesigner_internal::DeviceProfile::dpiX ( ) const

Definition at line 146 of file deviceprofile.cpp.

◆ dpiY()

int qdesigner_internal::DeviceProfile::dpiY ( ) const

Definition at line 156 of file deviceprofile.cpp.

◆ fontFamily()

QString qdesigner_internal::DeviceProfile::fontFamily ( ) const

Definition at line 116 of file deviceprofile.cpp.

◆ fontPointSize()

int qdesigner_internal::DeviceProfile::fontPointSize ( ) const

Definition at line 126 of file deviceprofile.cpp.

◆ fromSystem()

void qdesigner_internal::DeviceProfile::fromSystem ( )

Definition at line 166 of file deviceprofile.cpp.

◆ fromXml()

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

Definition at line 356 of file deviceprofile.cpp.

◆ isEmpty()

bool qdesigner_internal::DeviceProfile::isEmpty ( ) const

Definition at line 111 of file deviceprofile.cpp.

◆ name()

QString qdesigner_internal::DeviceProfile::name ( ) const

Definition at line 171 of file deviceprofile.cpp.

Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().

+ Here is the caller graph for this function:

◆ operator=()

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

Definition at line 98 of file deviceprofile.cpp.

◆ setDpiX()

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

Definition at line 151 of file deviceprofile.cpp.

◆ setDpiY()

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

Definition at line 161 of file deviceprofile.cpp.

◆ setFontFamily()

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

Definition at line 121 of file deviceprofile.cpp.

◆ setFontPointSize()

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

Definition at line 131 of file deviceprofile.cpp.

◆ setName()

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

Definition at line 176 of file deviceprofile.cpp.

◆ setStyle()

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

Definition at line 141 of file deviceprofile.cpp.

◆ style()

QString qdesigner_internal::DeviceProfile::style ( ) const

Definition at line 136 of file deviceprofile.cpp.

◆ systemResolution()

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

Definition at line 181 of file deviceprofile.cpp.

◆ toString()

QString qdesigner_internal::DeviceProfile::toString ( ) const

Definition at line 199 of file deviceprofile.cpp.

◆ toXml()

QString qdesigner_internal::DeviceProfile::toXml ( ) const

Definition at line 282 of file deviceprofile.cpp.

◆ widgetResolution()

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

Definition at line 192 of file deviceprofile.cpp.

Friends And Related Symbol Documentation

◆ comparesEqual

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

Definition at line 266 of file deviceprofile.cpp.


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