-
Notifications
You must be signed in to change notification settings - Fork 14
/
pqComboBoxEventPlayer.h
34 lines (27 loc) · 1.04 KB
/
pqComboBoxEventPlayer.h
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
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#ifndef __pqComboBoxEventPlayer_h
#define __pqComboBoxEventPlayer_h
#include "pqWidgetEventPlayer.h"
/// pqComboBoxEventPlayer is a player for QComboBoxWidget. Plays back the state
/// recorded using pqComboBoxEventTranslator.
class QTTESTING_EXPORT pqComboBoxEventPlayer : public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqComboBoxEventPlayer(QObject* parent = 0);
~pqComboBoxEventPlayer() override;
/// Play an event on a QComboBox
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command, const QString& arguments, int eventType,
bool& error) override;
Q_SIGNALS:
// Transition signal to call combo box activated signal
void activated(int index);
private:
pqComboBoxEventPlayer(const pqComboBoxEventPlayer&); // Not implemented.
void operator=(const pqComboBoxEventPlayer&); // Not implemented.
};
#endif