修复字体粗细功能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}
)
# 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)
#WIN32
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
add_executable(${PROJECT_NAME} WIN32 ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
#
#RPATH

View File

@ -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();