Qt
ApplicationComponents
pqMainWindowEventBehavior.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
#ifndef pqMainWindowEventBehavior_h
5
#define pqMainWindowEventBehavior_h
6
7
#include "
pqApplicationComponentsModule.h
"
8
#include <QObject>
9
10
class
QCloseEvent;
11
class
QDragEnterEvent;
12
class
QDropEvent;
13
class
QShowEvent;
14
19
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqMainWindowEventBehavior
:
public
QObject
20
{
21
Q_OBJECT
22
typedef
QObject Superclass;
23
24
public
:
25
pqMainWindowEventBehavior
(QObject* parent =
nullptr
);
26
~
pqMainWindowEventBehavior
()
override
;
27
28
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
32
void
onClose(QCloseEvent*);
33
37
void
onShow(QShowEvent*);
38
42
void
onDragEnter(QDragEnterEvent*);
43
47
void
onDrop(QDropEvent*);
48
49
private
:
50
Q_DISABLE_COPY(
pqMainWindowEventBehavior
)
51
};
52
53
#endif
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
pqMainWindowEventBehavior
Reaction to when things are dragged into the main window.
Definition:
pqMainWindowEventBehavior.h:19
pqApplicationComponentsModule.h
Generated by
1.8.13 on Tue Oct 1 2024