18#include <QDoubleValidator>
19#include <QIntValidator>
25 const QString& contents,
30 : QLineEdit(contents, parent),
31 _name(std::move(name)),
37 case QVariant::Double:
38 this->setValidator(
new QDoubleValidator(
this));
42 this->setValidator(
new QIntValidator(
this));
49 connect(
this, SIGNAL(editingFinished()),
this, SLOT(
setNewValue()));
56 QVariant value(this->text());
57 if (value.convert(
_type))
Definition of the VtkAlgorithmProperties class.
Definition of the VtkAlgorithmPropertyLineEdit class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
virtual void SetUserProperty(QString name, QVariant value)
Sets a user property. This should be implemented by subclasses.
VtkAlgorithmProperties * _algProps
void setNewValue()
This slots is automatically called when the text changed.
~VtkAlgorithmPropertyLineEdit() override
VtkAlgorithmPropertyLineEdit(const QString &contents, QString name, QVariant::Type type, VtkAlgorithmProperties *algProps, QWidget *parent=nullptr)
Constructor.