5#ifndef DFONTSIZEMANAGER_H
6#define DFONTSIZEMANAGER_H
9#include <dtkgui_global.h>
15class DFontManagerPrivate;
17 ,
public DTK_CORE_NAMESPACE::DObject
21 Q_PROPERTY(QFont t1 READ t1 NOTIFY fontChanged)
22 Q_PROPERTY(QFont t2 READ t2 NOTIFY fontChanged)
23 Q_PROPERTY(QFont t3 READ t3 NOTIFY fontChanged)
24 Q_PROPERTY(QFont t4 READ t4 NOTIFY fontChanged)
25 Q_PROPERTY(QFont t5 READ t5 NOTIFY fontChanged)
26 Q_PROPERTY(QFont t6 READ t6 NOTIFY fontChanged)
27 Q_PROPERTY(QFont t7 READ t7 NOTIFY fontChanged)
28 Q_PROPERTY(QFont t8 READ t8 NOTIFY fontChanged)
29 Q_PROPERTY(QFont t9 READ t9 NOTIFY fontChanged)
30 Q_PROPERTY(QFont t10 READ t10 NOTIFY fontChanged)
32 Q_PROPERTY(QFont baseFont READ baseFont WRITE setBaseFont RESET resetBaseFont NOTIFY fontChanged)
53 Q_INVOKABLE
int fontPixelSize(SizeType type)
const;
54 Q_INVOKABLE
void setFontPixelSize(SizeType type,
int size);
56 Q_INVOKABLE
static int fontPixelSize(
const QFont &font);
58 Q_INVOKABLE
static QFont get(
int pixelSize,
const QFont &base);
59 inline const QFont get(SizeType type,
const QFont &base)
const
61 return get(fontPixelSize(type), base);
63 inline const QFont get(SizeType type)
const
65 return get(type, baseFont());
68 QFont baseFont()
const;
69 void setBaseFont(
const QFont &font);
72 inline const QFont t1()
const
76 inline const QFont t2()
const
80 inline const QFont t3()
const
84 inline const QFont t4()
const
88 inline const QFont t5()
const
92 inline const QFont t6()
const
96 inline const QFont t7()
const
100 inline const QFont t8()
const
104 inline const QFont t9()
const
108 inline const QFont t10()
const
字体大小设置的一个类,系统默认只设置T6.
Definition: dfontmanager.h:18