修复字体粗细功能Bug
This commit is contained in:
parent
f69f4fb27d
commit
edf94105a0
@ -110,12 +110,12 @@ SET(PROJECT_SOURCES
|
||||
${src}
|
||||
)
|
||||
# 设置消息策略为qFatal来禁用qDebug信息
|
||||
#LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT")
|
||||
LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT")
|
||||
|
||||
#资源文件
|
||||
QT6_ADD_RESOURCES(RCFILES res.qrc)
|
||||
#WIN32
|
||||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
|
||||
add_executable(${PROJECT_NAME} WIN32 ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
|
||||
|
||||
#安全编译
|
||||
#关闭RPATH特性
|
||||
|
@ -144,9 +144,11 @@ void sui_title::slots_set_font_change()
|
||||
if(sender()!=nullptr){
|
||||
if(sender()->objectName()=="font_bold"){
|
||||
if(_data.x_config.font_bold){
|
||||
_data.x_config.font_bold=0;
|
||||
_data.x_config.font_bold=0;
|
||||
((QAction*)sender())->setChecked(false);
|
||||
}else{
|
||||
_data.x_config.font_bold=1;
|
||||
((QAction*)sender())->setChecked(true);
|
||||
}
|
||||
}else{
|
||||
_data.x_config.font=sender()->objectName().toInt();
|
||||
|
Loading…
Reference in New Issue
Block a user