File indexing completed on 2024-04-21 03:44:58
0001 /* 0002 SPDX-FileCopyrightText: 2001 Heiko Evermann <heiko@evermann.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 /** @class MagnitudeSpinBox 0008 *A special spinbox for entering magnitude values. 0009 *This class now inherits QDoubleSpinBox instead of QSpinBox 0010 *@short a custom spinbox for magnitude (float) values. 0011 *@author Heiko Evermann 0012 *@version 1.0 0013 */ 0014 #pragma once 0015 0016 #include <QDoubleSpinBox> 0017 0018 class QWidget; 0019 0020 class MagnitudeSpinBox : public QDoubleSpinBox 0021 { 0022 Q_OBJECT 0023 public: 0024 /** Default Constructor */ 0025 explicit MagnitudeSpinBox(QWidget *parent = nullptr); 0026 0027 /** Constructor. Set minimum and maximum values for the spinbox. */ 0028 MagnitudeSpinBox(double minValue, double maxValue, QWidget *parent = nullptr); 0029 };