Qt
Components
pqPluginTreeWidgetEventTranslator.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 pqPluginTreeWidgetEventTranslator_h
6
#define pqPluginTreeWidgetEventTranslator_h
7
8
#include "
pqComponentsModule.h
"
9
#include "pqWidgetEventTranslator.h"
10
#include <QPointer>
11
12
class
QModelIndex;
13
class
pqPluginTreeWidget
;
14
15
class
PQCOMPONENTS_EXPORT
pqPluginTreeWidgetEventTranslator
:
public
pqWidgetEventTranslator
16
{
17
Q_OBJECT
18
typedef
pqWidgetEventTranslator Superclass;
19
20
public
:
21
pqPluginTreeWidgetEventTranslator
(QObject* parentObject =
nullptr
);
22
~
pqPluginTreeWidgetEventTranslator
()
override
;
23
24
using
Superclass::translateEvent;
25
bool
translateEvent(QObject* Object, QEvent* Event,
bool
& Error)
override
;
26
27
private
Q_SLOTS:
28
void
onItemChanged(
const
QModelIndex&);
29
void
onExpanded(
const
QModelIndex&);
30
void
onCollapsed(
const
QModelIndex&);
31
void
onCurrentChanged(
const
QModelIndex&);
32
33
private
:
// NOLINT(readability-redundant-access-specifiers)
34
QString getIndexAsString(
const
QModelIndex&);
35
36
pqPluginTreeWidgetEventTranslator
(
const
pqPluginTreeWidgetEventTranslator
&);
37
pqPluginTreeWidgetEventTranslator
& operator=(
const
pqPluginTreeWidgetEventTranslator
&);
38
39
QPointer<pqPluginTreeWidget> TreeView;
40
};
41
42
#endif // !pqPluginTreeWidgetEventTranslator_h
pqComponentsModule.h
PQCOMPONENTS_EXPORT
#define PQCOMPONENTS_EXPORT
Definition:
pqComponentsModule.h:15
pqPluginTreeWidget
Definition:
pqPluginTreeWidget.h:12
pqPluginTreeWidgetEventTranslator
Definition:
pqPluginTreeWidgetEventTranslator.h:15
Generated by
1.8.13 on Tue Oct 1 2024