修复字体粗细功能Bug

This commit is contained in:
JackLee_CN 2024-10-13 23:26:09 +08:00
parent f69f4fb27d
commit edf94105a0
2 changed files with 5 additions and 3 deletions

View File

@ -110,12 +110,12 @@ SET(PROJECT_SOURCES
${src} ${src}
) )
# qFatalqDebug # qFatalqDebug
#LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT") LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT")
# #
QT6_ADD_RESOURCES(RCFILES res.qrc) QT6_ADD_RESOURCES(RCFILES res.qrc)
#WIN32 #WIN32
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${RCFILES} xsteam.rc) add_executable(${PROJECT_NAME} WIN32 ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
# #
#RPATH #RPATH

View File

@ -145,8 +145,10 @@ void sui_title::slots_set_font_change()
if(sender()->objectName()=="font_bold"){ if(sender()->objectName()=="font_bold"){
if(_data.x_config.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{ }else{
_data.x_config.font_bold=1; _data.x_config.font_bold=1;
((QAction*)sender())->setChecked(true);
} }
}else{ }else{
_data.x_config.font=sender()->objectName().toInt(); _data.x_config.font=sender()->objectName().toInt();