-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpqNativeFileDialogEventPlayer.h
More file actions
44 lines (32 loc) · 1.07 KB
/
pqNativeFileDialogEventPlayer.h
File metadata and controls
44 lines (32 loc) · 1.07 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
40
41
42
43
44
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#ifndef _pqNativeFileDialogEventPlayer_h
#define _pqNativeFileDialogEventPlayer_h
#include "pqWidgetEventPlayer.h"
#include <QMouseEvent>
class pqTestUtility;
/**
Records usage of native file dialogs in test cases.
\sa pqEventPlayer
*/
class QTTESTING_EXPORT pqNativeFileDialogEventPlayer : public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqNativeFileDialogEventPlayer(pqTestUtility* util, QObject* p = 0);
~pqNativeFileDialogEventPlayer() override;
using Superclass::playEvent;
bool playEvent(
QObject* Object, const QString& Command, const QString& Arguments, bool& Error) override;
protected Q_SLOTS:
void start();
void stop();
protected:
pqTestUtility* mUtil;
private:
pqNativeFileDialogEventPlayer(const pqNativeFileDialogEventPlayer&);
pqNativeFileDialogEventPlayer& operator=(const pqNativeFileDialogEventPlayer&);
};
#endif // !_pqNativeFileDialogEventPlayer_h