53 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_WIDGETBOX_DEVICEPROFILE_P_H
54 #define BORNAGAIN_GUI_COREGUI_VIEWS_WIDGETBOX_DEVICEPROFILE_P_H
58 #include <QtCore/QSharedDataPointer>
59 #include <QtCore/QString>
63 class QDesignerFormEditorInterface;
69 class DeviceProfileData;
129 void apply(
const QDesignerFormEditorInterface* core, QWidget* widget,
ApplyMode am)
const;
131 static void applyDPI(
int dpiX,
int dpiY, QWidget* widget);
136 bool fromXml(
const QString& xml, QString* errorMessage);
139 QSharedDataPointer<DeviceProfileData>
m_d;
void apply(const QDesignerFormEditorInterface *core, QWidget *widget, ApplyMode am) const
DeviceProfile(const DeviceProfile &)
QString fontFamily() const
static void systemResolution(int *dpiX, int *dpiY)
bool equals(const DeviceProfile &rhs) const
DeviceProfile & operator=(const DeviceProfile &)
int fontPointSize() const
bool fromXml(const QString &xml, QString *errorMessage)
void setFontFamily(const QString &)
QSharedDataPointer< DeviceProfileData > m_d
void setFontPointSize(int p)
static void widgetResolution(const QWidget *w, int *dpiX, int *dpiY)
void setName(const QString &)
static void applyDPI(int dpiX, int dpiY, QWidget *widget)
void setStyle(const QString &)
bool operator!=(const DeviceProfile &s1, const DeviceProfile &s2)
bool operator==(const DeviceProfile &s1, const DeviceProfile &s2)
#define QDESIGNER_SHARED_EXPORT