fix: 缩小字体设置范围;
This commit is contained in:
parent
57bd7b7c61
commit
56304a75d0
|
@ -5133,7 +5133,7 @@
|
|||
<context>
|
||||
<name>SettingManager</name>
|
||||
<message>
|
||||
<location filename="../../src/class/settingmanager.cpp" line="216"/>
|
||||
<location filename="../../src/class/settingmanager.cpp" line="217"/>
|
||||
<source>ConfigUnableSave</source>
|
||||
<translation>程序将无法保存配置,请检查配置文件权限。</translation>
|
||||
</message>
|
||||
|
|
|
@ -5133,7 +5133,7 @@
|
|||
<context>
|
||||
<name>SettingManager</name>
|
||||
<message>
|
||||
<location filename="../../src/class/settingmanager.cpp" line="216"/>
|
||||
<location filename="../../src/class/settingmanager.cpp" line="217"/>
|
||||
<source>ConfigUnableSave</source>
|
||||
<translation>程式將無法保存配置,請檢查配置檔許可權。</translation>
|
||||
</message>
|
||||
|
|
|
@ -120,6 +120,7 @@ void SettingManager::load() {
|
|||
READ_CONFIG_BOOL(m_enablePlgInRoot, PLUGIN_ENABLE_ROOT, false);
|
||||
READ_CONFIG_INT_POSITIVE(m_editorfontSize, EDITOR_FONTSIZE,
|
||||
defaultFontSize);
|
||||
m_editorfontSize = qBound(5, m_editorfontSize, 25);
|
||||
READ_CONFIG_BOOL(m_editorShowHeader, EDITOR_SHOW_ADDR, true);
|
||||
READ_CONFIG_BOOL(m_editorShowcol, EDITOR_SHOW_COL, true);
|
||||
READ_CONFIG_BOOL(m_editorShowtext, EDITOR_SHOW_TEXT, true);
|
||||
|
|
|
@ -129,10 +129,10 @@
|
|||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="sbFontSize">
|
||||
<property name="minimum">
|
||||
<number>10</number>
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>50</number>
|
||||
<number>25</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -192,7 +192,7 @@
|
|||
<string notr="true">-</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -212,7 +212,7 @@
|
|||
<string notr="true">-</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -232,7 +232,7 @@
|
|||
<string notr="true">-</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -252,7 +252,7 @@
|
|||
<string notr="true">-</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -265,7 +265,7 @@
|
|||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
<enum>Qt::Orientation::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
|
|
Loading…
Reference in New Issue