JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
jkqtpenhancedspinboxes.h
1/*
2 Copyright (c) 2008-2024 Jan W. Krieger (<jan@jkrieger.de>)
3
4
5
6 This software is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation, either version 2.1 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20
21#ifndef jkqtpenhancedspinboxes_H_INCLUDED
22#define jkqtpenhancedspinboxes_H_INCLUDED
23#include "jkqtplotter/jkqtplotter_imexport.h"
24
25#include <QSpinBox>
26#include <QDoubleSpinBox>
27
28/*! \brief enhanced QDoubleSpinBox
29 \ingroup jkqtptools_qtwidgets
30
31 This class adds an event editingFinished() to QDoubleSpinBox.
32*/
34 Q_OBJECT
35 public:
36 JKQTPEnhancedDoubleSpinBox(QWidget* parent=nullptr);
38 Q_SIGNALS:
39 void editingFinished(double value);
40 protected Q_SLOTS:
42};
43
44
45
46/*! \brief enhanced QDoubleSpinBox
47 \ingroup jkqtptools_qtwidgets
48
49 This class adds an event editingFinished() to QDoubleSpinBox.
50*/
52 Q_OBJECT
53 public:
54 JKQTPEnhancedSpinBox(QWidget* parent=nullptr);
56 Q_SIGNALS:
57 void editingFinished(int value);
58 protected Q_SLOTS:
60};
61
62#endif // jkqtpenhancedspinboxes_H_INCLUDED
enhanced QDoubleSpinBox
Definition jkqtpenhancedspinboxes.h:33
void editingFinished(double value)
JKQTPEnhancedDoubleSpinBox(QWidget *parent=nullptr)
enhanced QDoubleSpinBox
Definition jkqtpenhancedspinboxes.h:51
void editingFinished(int value)
JKQTPEnhancedSpinBox(QWidget *parent=nullptr)
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89