pqListWidgetCheckHelper.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 
5 #ifndef pqListWidgetCheckHelper_h
6 #define pqListWidgetCheckHelper_h
7 
8 #include "pqWidgetsModule.h"
9 #include <QObject>
10 
11 class QListWidget;
12 class QListWidgetItem;
13 
24 {
25  Q_OBJECT
26 public:
27  // ListWidget :- the List widget managed by this helper.
28  // checkableColumn :- column index for the checkable item.
29  // parent :- QObject parent.
30  pqListWidgetCheckHelper(QListWidget* ListWidget, QObject* parent);
31 
32 protected Q_SLOTS:
33  void onItemClicked(QListWidgetItem* item);
34  void onItemPressed(QListWidgetItem* item);
35 
36 private:
37  Q_DISABLE_COPY(pqListWidgetCheckHelper)
38 
39  QListWidget* List;
40  int PressState;
41 };
42 
43 #endif
If a QListWidget has checkable elements in any column, on needs to explicitly click on the checkbox t...
#define PQWIDGETS_EXPORT