pqFlatTreeViewEventTranslator.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 pqFlatTreeViewEventTranslator_h
6 #define pqFlatTreeViewEventTranslator_h
7 
8 #include "pqCoreModule.h"
9 #include "pqWidgetEventTranslator.h"
10 #include <QPoint>
11 
18 class PQCORE_EXPORT pqFlatTreeViewEventTranslator : public pqWidgetEventTranslator
19 {
20  Q_OBJECT
21  typedef pqWidgetEventTranslator Superclass;
22 
23 public:
24  pqFlatTreeViewEventTranslator(QObject* p = nullptr);
25 
26  using Superclass::translateEvent;
27  bool translateEvent(QObject* Object, QEvent* Event, bool& Error) override;
28 
29 protected:
30  QPoint LastPos;
31 
32 private:
35 };
36 
37 #endif // !pqFlatTreeViewEventTranslator_h
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
Translates low-level Qt events into high-level ParaView events that can be recorded as test cases...