pqExpressionChooserButton.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 pqExpressionChooserButton_h
5 #define pqExpressionChooserButton_h
6 
7 #include "pqComponentsModule.h"
8 #include <QToolButton>
9 
20 {
21  Q_OBJECT
22  typedef QToolButton Superclass;
23 
24 public:
25  pqExpressionChooserButton(QWidget* parent, const QString& group = "");
26  ~pqExpressionChooserButton() override;
27 
28  void setGroup(const QString& group);
29 
30 Q_SIGNALS:
31  void expressionSelected(const QString& expr) const;
32 
33 protected Q_SLOTS:
34  void updateMenu();
35 
36 protected: // NOLINT(readability-redundant-access-specifiers)
37  QString Group;
38 
39 private:
40  Q_DISABLE_COPY(pqExpressionChooserButton);
41 };
42 
43 #endif
#define PQCOMPONENTS_EXPORT
Custom QToolButton that adds a menu to select expression.