pqArrayListWidget.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 pqArrayListWidget_h
5 #define pqArrayListWidget_h
6 
7 #include "pqComponentsModule.h"
8 
9 #include <QWidget>
10 
11 class pqArrayListModel;
13 
25 class PQCOMPONENTS_EXPORT pqArrayListWidget : public QWidget
26 {
27  Q_OBJECT;
28  typedef QWidget Superclass;
29 
30 public:
31  pqArrayListWidget(QWidget* parent = nullptr);
32  ~pqArrayListWidget() override = default;
33 
37  bool event(QEvent* e) override;
38 
42  void setHeaderLabel(const QString& label);
43 
49  void setMaximumRowCountBeforeScrolling(int size);
50 
54  void setIconType(const QString& icon_type);
55 
56 Q_SIGNALS:
60  void widgetModified();
61 
62 protected:
66  void propertyChanged(const QString& pname);
67 
68 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
69  void updateProperty();
70 
71 private:
72  Q_DISABLE_COPY(pqArrayListWidget);
73 
74  pqArrayListModel* Model = nullptr;
75  pqExpandableTableView* TableView = nullptr;
76 
77  bool UpdatingProperty = false;
78 };
79 
80 #endif
#define PQCOMPONENTS_EXPORT
A widget for array labeling.
size
pqExpandableTableView extends pqTableView to add support for the following features: ...