pqSpinBox.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 pqSpinBox_h
5 #define pqSpinBox_h
6 
7 #include "pqWidgetsModule.h"
8 #include <QSpinBox>
9 
17 class PQWIDGETS_EXPORT pqSpinBox : public QSpinBox
18 {
19  Q_OBJECT
20  typedef QSpinBox Superclass;
21 
22 public:
23  explicit pqSpinBox(QWidget* parent = nullptr);
24 
29  void stepBy(int steps) override;
30 
31 Q_SIGNALS:
38  void valueChangedAndEditingFinished();
39 
40 private Q_SLOTS:
41  void onValueEdited();
42  void onEditingFinished();
43 
44 private: // NOLINT(readability-redundant-access-specifiers)
45  Q_DISABLE_COPY(pqSpinBox)
46  bool EditingFinishedPending;
47 };
48 
49 #endif
QSpinBox which fires editingFinished() signal when the value is changed by steps (increments).
Definition: pqSpinBox.h:17
#define PQWIDGETS_EXPORT