mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: do something make old qt version happy
This commit is contained in:
parent
46d8568139
commit
3c47c8f4d6
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user