pqExpandableTableView.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 pqExpandableTableView_h
5 #define pqExpandableTableView_h
6 
7 #include "pqTableView.h"
8 #include "pqWidgetsModule.h" // for export macro
9 
22 {
23  Q_OBJECT
24  typedef pqTableView Superclass;
25 
26 public:
27  pqExpandableTableView(QWidget* parent = nullptr);
28  ~pqExpandableTableView() override;
29 
34  void setPasteEnabled(bool enable);
35 
36 Q_SIGNALS:
42  void editPastLastRow();
43 
44 protected:
49  QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override;
50 
56  void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) override;
57 
61  void keyPressEvent(QKeyEvent* event) override;
62 
64 
65 private:
66  Q_DISABLE_COPY(pqExpandableTableView)
67  bool MoveToNextEditableItem;
68 };
69 
70 #endif
a QTableView subclass for ParaView specific customizations.
Definition: pqTableView.h:23
#define PQWIDGETS_EXPORT
pqExpandableTableView extends pqTableView to add support for the following features: ...