| 1 |
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DFONTSIZEMANAGER_P_H |
| 6 |
#define DFONTSIZEMANAGER_P_H |
| 7 |
|
| 8 |
#include <DObjectPrivate> |
| 9 |
#include <DObject> |
| 10 |
|
| 11 |
#include "dfontmanager.h" |
| 12 |
|
| 13 |
DGUI_BEGIN_NAMESPACE |
| 14 |
|
| 15 |
class DFontManagerPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate |
| 16 |
{ |
| 17 |
public: |
| 18 |
DFontManagerPrivate(DFontManager *qq); |
| 19 |
|
| 20 |
int fontPixelSize[DFontManager::NSizeTypes] = {40, 30, 24, 20, 17, 14, 13, 12, 11, 10}; |
| 21 |
int baseFontSizeType = DFontManager::T6; |
| 22 |
// 字号的差值 |
| 23 |
int fontPixelSizeDiff = 0; |
| 24 |
QFont baseFont; |
| 25 |
|
| 26 |
private: |
| 27 |
D_DECLARE_PUBLIC(DFontManager) |
| 28 |
}; |
| 29 |
|
| 30 |
DGUI_END_NAMESPACE |
| 31 |
|
| 32 |
#endif // DFONTSIZEMANAGER_P_H |