chore: do something make old qt version happy

This commit is contained in:
x-tools-author 2025-04-13 09:15:45 +08:00
parent 46d8568139
commit 3c47c8f4d6

View File

@ -8,6 +8,7 @@
**************************************************************************************************/
#pragma once
#include <QCheckBox>
#include <QComboBox>
#include <QJsonObject>
#include <QLineEdit>
@ -40,6 +41,12 @@
#define xDefaultStyleName QString("fusion")
#endif
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
#define xCheckStateChanged &QCheckBox::checkStateChanged
#else
#define xCheckStateChanged qOverload<int>(&QCheckBox::stateChanged)
#endif
/**************************************************************************************************/
enum class DeviceType {
SerialPort,