KItinerary
priceutil.h
43 Q_INVOKABLE static int decimalCount(const QString ¤cy); // QML doesn't support QStringView yet...
Utilities for dealing with price/currency information of items.
Definition priceutil.h:21
static Q_INVOKABLE bool canHavePrice(const QVariant &item)
Returns true if item can have price/currency information.
Definition priceutil.cpp:33
static Q_INVOKABLE void setPrice(QVariant &item, double price, const QString ¤cy)
Sets price and currency on item.
Definition priceutil.cpp:66
static Q_INVOKABLE QString currency(const QVariant &item)
Returns the currency value from item.
Definition priceutil.cpp:52
static int decimalCount(QStringView currency)
Returns the number of decimals to represent the sub-unit of currency.
Definition priceutil.cpp:92
static Q_INVOKABLE double price(const QVariant &item)
Returns the price value from item.
Definition priceutil.cpp:38
static Q_INVOKABLE bool hasPrice(const QVariant &item)
Returns true if item has valid price and currency information.
Definition priceutil.cpp:16
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.