Qt
Widgets
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
23
class
PQWIDGETS_EXPORT
pqListWidgetCheckHelper
:
public
QObject
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
pqWidgetsModule.h
pqListWidgetCheckHelper
If a QListWidget has checkable elements in any column, on needs to explicitly click on the checkbox t...
Definition:
pqListWidgetCheckHelper.h:23
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
Generated by
1.8.13 on Tue Oct 1 2024