6 #include <QRegularExpressionValidator> 10 m_buttonAdd(new QToolButton(this)),
11 m_buttonRemove(new QToolButton(this)),
15 QHBoxLayout *mainLayout =
new QHBoxLayout(
this);
16 mainLayout->setSpacing(2);
17 mainLayout->setContentsMargins(0,0,0,0);
28 QRegularExpression regEx;
31 QRegularExpressionValidator *validator =
new QRegularExpressionValidator(
m_itemValue);
32 validator->setRegularExpression(regEx);
40 setLayout(mainLayout);
QValidatedLineEdit * m_itemValue
QToolButton * m_buttonAdd
Line edit that can be marked as "invalid" to show input validation feedback.
bool getIsDeleted() const
QToolButton * m_buttonRemove
void setEmptyIsValid(bool value)
ABIParamItem(const PlatformStyle *platformStyle, const ParameterABI ¶m, QWidget *parent=0)
const ParameterType & decodeType() const
static bool getRegularExpession(const ParameterType ¶mType, QRegularExpression ®Ex)
void setFixed(bool isFixed)
void on_removeItemClicked()
void setCheckValidator(const QValidator *v)
void setIsDeleted(bool isLast)
void setValid(bool valid)
void setPosition(int position)