OGS
VtkAlgorithmPropertyLineEdit.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <QLineEdit>
18 #include <QVariant>
19 
21 class QString;
22 
25 class VtkAlgorithmPropertyLineEdit : public QLineEdit
26 {
27  Q_OBJECT
28 
29 public:
36  VtkAlgorithmPropertyLineEdit(const QString& contents,
37  QString name,
38  QVariant::Type type,
39  VtkAlgorithmProperties* algProps,
40  QWidget* parent = nullptr);
42 
43 private:
44  const QString _name;
46  QVariant::Type _type;
47 
48 private slots:
50  void setNewValue();
51 };
Contains properties for the visualization of objects as VtkVisPipelineItems.
This QLineEdit sets a user property on the given VtkAlgorithmProperties object automatically.
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.