diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-26 22:24:15 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-26 22:24:15 +0800 |
commit | 451437641aee7771b97ac5e54e1543a2510ce17a (patch) | |
tree | 565509281cf46f63dcbb6d520026218d42a218c5 /qicclient | |
parent | 270352439b721b7b38797df1ce6f9cdf0c47c2ea (diff) | |
parent | 8d0304106b5aafda286c93034f0f7976dcfcdff4 (diff) |
Merge branch 'master' into cmake
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/catalog.hxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx index 07b4c81..27b4c8e 100644 --- a/qicclient/catalog.hxx +++ b/qicclient/catalog.hxx @@ -2,7 +2,6 @@ #define QICCLIENT_CATALOG_HXX #include <QAbstractListModel> -#include <QLocale> #include <icclient/product.h> struct icclient_catalog; @@ -21,23 +20,23 @@ namespace ICClient { m_comment = QString{product->comment}; if (product->image) m_image = QString{product->image}; - QLocale locale; - if (product->price) - m_price = locale.toCurrencyString - (product->price, "Rp"); + m_price = product->price; } QString const& sku() const { return m_sku; } - QString const& description() const { return m_description; } + QString const& description() const + { + return m_description; + } QString const& comment() const { return m_comment; } QString const& image() const { return m_image; } - QString const& price() const { return m_price; } + double price() const { return m_price; } private: QString m_sku; QString m_description; QString m_comment; QString m_image; - QString m_price; + double m_price; }; class Catalog : public QAbstractListModel |