Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37954724
pluralhandlingspinbox.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
847 B
Subscribers
None
pluralhandlingspinbox.h
View Options
/*
SPDX-FileCopyrightText: 2014 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.1-or-later
This is a copy of KPluralHandlingSpinBox from KTextWidgets.
*/
#pragma once
#include
<KLocalizedString>
#include
<QSpinBox>
#include
<memory>
class
PluralHandlingSpinBox
:
public
QSpinBox
{
Q_OBJECT
public
:
/**
* Default constructor
*/
explicit
PluralHandlingSpinBox
(
QWidget
*
parent
=
nullptr
);
~
PluralHandlingSpinBox
()
override
;
/**
* Sets the suffix to @p suffix.
* Use this to add a plural-aware suffix, e.g. by using ki18np("singular", "plural").
*/
void
setSuffix
(
const
KLocalizedString
&
suffix
);
private
:
friend
class
PluralHandlingSpinBoxPrivate
;
std
::
unique_ptr
<
class
PluralHandlingSpinBoxPrivate
>
const
d
;
Q_DISABLE_COPY
(
PluralHandlingSpinBox
)
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Mar 19, 6:02 PM (5 h, 17 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/b2/fef5aa32f6d903050404009f8e95
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment