pqEqualizeLayoutReaction.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 pqEqualizeLayoutReaction_h
5 #define pqEqualizeLayoutReaction_h
6 
7 #include "pqReaction.h"
8 
15 {
16  Q_OBJECT
17  using Superclass = pqReaction;
18 
19 public:
20  enum class Orientation
21  {
22  HORIZONTAL,
23  VERTICAL,
24  BOTH
25  };
26 
28  ~pqEqualizeLayoutReaction() override = default;
29 
30 protected:
34  void onTriggered() override;
35 
36 private:
37  Q_DISABLE_COPY(pqEqualizeLayoutReaction)
38  const Orientation ActionOrientation = Orientation::BOTH;
39 };
40 
41 #endif
Reaction for resizing views inside the active layout.
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqReaction(QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
Constructor.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
orientation