blob: ca34f1acfec5d8f0b52272a914b5280654b44782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CALCULATORFORM_H
#define CALCULATORFORM_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QLabel;
class QSpinBox;
QT_END_NAMESPACE
//! [0]
class CalculatorForm : public QWidget
{
Q_OBJECT
public:
explicit CalculatorForm(QWidget *parent = nullptr);
private slots:
void on_inputSpinBox1_valueChanged(int value);
void on_inputSpinBox2_valueChanged(int value);
private:
QSpinBox *ui_inputSpinBox1;
QSpinBox *ui_inputSpinBox2;
QLabel *ui_outputWidget;
};
//! [0]
#endif // CALCULATORFORM_H
|