[qt_common] reorg + checkstate abstraction (#2735)

no diff. in functionality, just confirm builds on ubuntu 24.04/debian 12

Signed-off-by: crueter <crueter@eden-emu.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2735
This commit is contained in:
crueter 2025-10-15 05:05:03 +02:00
parent 5f9dba40a0
commit fff8e2026f
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
77 changed files with 174 additions and 129 deletions

View file

@ -45,7 +45,8 @@
#include "common/logging/log.h"
#include "common/settings.h"
#include "common/settings_common.h"
#include "qt_common/shared_translation.h"
#include "qt_common/qt_compat.h"
#include "qt_common/config/shared_translation.h"
namespace ConfigurationShared {
@ -700,7 +701,7 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu
restore_func();
}
};
connect(checkbox, &QCheckBox::stateChanged, reset);
connect(checkbox, &QCheckBox::STATE_CHANGED, reset);
reset(checkbox->checkState());
}
}