-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpqComboBoxEventTranslator.h
More file actions
39 lines (28 loc) · 1.03 KB
/
pqComboBoxEventTranslator.h
File metadata and controls
39 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#ifndef _pqComboBoxEventTranslator_h
#define _pqComboBoxEventTranslator_h
#include "pqWidgetEventTranslator.h"
/**
Translates low-level Qt events into high-level ParaView events that can be recorded as test cases.
\sa pqEventTranslator
*/
class QTTESTING_EXPORT pqComboBoxEventTranslator : public pqWidgetEventTranslator
{
Q_OBJECT
typedef pqWidgetEventTranslator Superclass;
public:
pqComboBoxEventTranslator(QObject* p = 0);
using Superclass::translateEvent;
bool translateEvent(QObject* Object, QEvent* Event, bool& Error) override;
private:
pqComboBoxEventTranslator(const pqComboBoxEventTranslator&);
pqComboBoxEventTranslator& operator=(const pqComboBoxEventTranslator&);
QObject* CurrentObject;
private Q_SLOTS:
void onDestroyed(QObject*);
void onActivated(const QString&);
void onEditTextChanged(const QString&);
};
#endif // !_pqComboBoxEventTranslator_h