summaryrefslogtreecommitdiffstats
path: root/tests/manual/examples/widgets/widgets/icons/iconsizespinbox.h
blob: ac304b47941d95339214f9980b7b35db107eb555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef ICONSIZESPINBOX_H
#define ICONSIZESPINBOX_H

#include <QSpinBox>

//! [0]
class IconSizeSpinBox : public QSpinBox
{
    Q_OBJECT

public:
    explicit IconSizeSpinBox(QWidget *parent = nullptr);

    int valueFromText(const QString &text) const override;
    QString textFromValue(int value) const override;
};
//! [0]

#endif