KCoreConfigSkeleton::ItemInt Class
Class for handling a 32-bit integer preferences item. More...
- Header:
#include <ItemInt> - CMake:
find_package(KF6 REQUIRED COMPONENTS Config)
target_link_libraries(mytarget PRIVATE KF6::ConfigCore) - Inherits: KConfigSkeletonGenericItem
- Inherited By: KCoreConfigSkeleton::ItemEnum
List of all members, including inherited members
Public Functions
- ItemInt(const QString &_group, const QString &_key, qint32 &reference, qint32 defaultValue = 0)
- void setMaxValue(qint32)
- void setMinValue(qint32)
Detailed Description
Member Function Documentation
ItemInt::ItemInt(const QString &_group, const QString &_key, qint32 &reference, qint32 defaultValue = 0)
Constructs an int item with the given _group, _key, the initial value reference to hold in the item, and the defaultValue for the item.
void ItemInt::setMaxValue(qint32)
Sets the maximum value for the item.
See also maxValue
void ItemInt::setMinValue(qint32)
Sets the minimum value for the item.
See also minValue()