10#include <QRegularExpression>
11#include <qstyleditemdelegate.h>
15const std::string DEFAULT_REGEX =
"(0|[1-9][0-9]*)";
16constexpr auto DEFAULT_NUMERICAL_PRECISION = 6;
20namespace MantidWidgets {
29 RegexInputDelegate(QWidget *parent =
nullptr,
const std::string &validator = DEFAULT_REGEX);
30 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &,
const QModelIndex &)
const override;
39 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &,
const QModelIndex &)
const override;
40 void setEditorData(QWidget *editor,
const QModelIndex &
index)
const override;
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...