Pages
API Documentation
On this page

KPluralHandlingSpinBox Class

A QSpinBox with plural handling for the suffix. This class is deprecated since 6.6. We strongly advise against using it in new code. More...

  • Header: #include <KPluralHandlingSpinBox>
  • CMake: find_package(KF6 REQUIRED COMPONENTS TextWidgets)
    target_link_libraries(mytarget PRIVATE KF6::TextWidgets)
  • Inherits: QSpinBox
  • Status: Deprecated since 6.6

List of all members, including inherited members

Public Functions

This class is deprecated since 6.6. We strongly advise against using it in new code.

Detailed Description

Use KLocalization::setupSpinBoxFormatString() from KF6::I18n instead, which is more powerful and does not require inheriting from a specific QSpinBox subclass.

Member Function Documentation

[explicit] KPluralHandlingSpinBox::KPluralHandlingSpinBox(QWidget *parent = nullptr)

Default constructor

void KPluralHandlingSpinBox::setSuffix(const KLocalizedString &suffix)

Sets the suffix to suffix. Use this to add a plural-aware suffix, e.g. by using ki18np("singular", "plural").

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.