File indexing completed on 2025-02-02 04:26:12
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Boudhayan Gupta <bgupta@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef SMARTSPINBOX_H 0008 #define SMARTSPINBOX_H 0009 0010 #include <QDoubleSpinBox> 0011 0012 class SmartSpinBox : public QDoubleSpinBox 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit SmartSpinBox(QWidget *parent = nullptr); 0018 QString textFromValue(double val) const override; 0019 0020 private Q_SLOTS: 0021 0022 void suffixChangeHandler(double val); 0023 }; 0024 0025 #endif // SMARTSPINBOX_H