KTextWidgets 5.109.0
kpluralhandlingspinbox.h
1/*
2 SPDX-FileCopyrightText: 2014 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef KPLURALHANDLINGSPINBOX_H
8#define KPLURALHANDLINGSPINBOX_H
9
10#include <ktextwidgets_export.h>
11
12#include <KLocalizedString>
13
14#include <QSpinBox>
15
16#include <memory>
17
27class KTEXTWIDGETS_EXPORT KPluralHandlingSpinBox : public QSpinBox
28{
29 Q_OBJECT
30public:
35 explicit KPluralHandlingSpinBox(QWidget *parent = nullptr);
36 ~KPluralHandlingSpinBox() override;
37
42 void setSuffix(const KLocalizedString &suffix);
43
44private:
45 friend class KPluralHandlingSpinBoxPrivate;
46 std::unique_ptr<class KPluralHandlingSpinBoxPrivate> const d;
47
48 Q_DISABLE_COPY(KPluralHandlingSpinBox)
49};
50
51#endif // KPLURALHANDLINGSPINBOX_H
A QSpinBox with plural handling for the suffix.
Definition kpluralhandlingspinbox.h:28
KPluralHandlingSpinBox(QWidget *parent=nullptr)
Default constructor.
void setSuffix(const KLocalizedString &suffix)
Sets the suffix to suffix.