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 
8 #include <QObject>
9 
10 class QCloseEvent;
11 class QDragEnterEvent;
12 class QDropEvent;
13 class QShowEvent;
14 
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
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction to when things are dragged into the main window.