|
|
@ -23,7 +23,7 @@
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QRegExp>
|
|
|
|
#include <QRegularExpression>
|
|
|
|
#include <QSizePolicy>
|
|
|
|
#include <QSizePolicy>
|
|
|
|
#include <QSlider>
|
|
|
|
#include <QSlider>
|
|
|
|
#include <QSpinBox>
|
|
|
|
#include <QSpinBox>
|
|
|
@ -295,8 +295,8 @@ QWidget* Widget::CreateHexEdit(std::function<std::string()>& serializer,
|
|
|
|
return QString::fromStdString(fmt::format("{:08x}", std::stoul(input)));
|
|
|
|
return QString::fromStdString(fmt::format("{:08x}", std::stoul(input)));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
QRegExpValidator* regex =
|
|
|
|
QRegularExpressionValidator* regex = new QRegularExpressionValidator(
|
|
|
|
new QRegExpValidator{QRegExp{QStringLiteral("^[0-9a-fA-F]{0,8}$")}, line_edit};
|
|
|
|
QRegularExpression{QStringLiteral("^[0-9a-fA-F]{0,8}$")}, line_edit);
|
|
|
|
|
|
|
|
|
|
|
|
const QString default_val = to_hex(setting.ToString());
|
|
|
|
const QString default_val = to_hex(setting.ToString());
|
|
|
|
|
|
|
|
|
|
|
|