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 | |
parent | 270352439b721b7b38797df1ce6f9cdf0c47c2ea (diff) | |
parent | 8d0304106b5aafda286c93034f0f7976dcfcdff4 (diff) |
Merge branch 'master' into cmake
m--------- | libicclient | 10 | ||||
-rw-r--r-- | qicclient/catalog.hxx | 15 |
2 files changed, 12 insertions, 13 deletions
diff --git a/libicclient b/libicclient -Subproject 8b8fcdd17bf243440f52bd74e447afcface8b10 +Subproject de7fefc270ef3fd8552773e8e6424ad5885b306 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 |