pqListPropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqListPropertyWidget_h
5 #define pqListPropertyWidget_h
6 
8 #include "pqPropertyWidget.h"
9 
10 #include <QVariant>
11 
12 class QTableWidget;
13 
21 {
22  Q_OBJECT
24  Q_PROPERTY(QList<QVariant> value READ value WRITE setValue NOTIFY valueChanged);
25 
26 public:
27  explicit pqListPropertyWidget(
28  vtkSMProxy* smproxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
29  ~pqListPropertyWidget() override;
30 
34  QList<QVariant> value() const;
35  void setValue(const QList<QVariant>& value);
36 
37 Q_SIGNALS:
38  void valueChanged();
39 
40 private:
41  Q_DISABLE_COPY(pqListPropertyWidget)
42  QTableWidget* TableWidget;
43 };
44 
45 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
pqListPropertyWidget is a pqPropertyWidget that is used to show an editable list of elements...
#define PQAPPLICATIONCOMPONENTS_EXPORT
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
value