diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-16 08:19:39 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-07-16 08:19:39 +0800 |
commit | e790f72bdbea00c353709dc5a9920527121eb57c (patch) | |
tree | 622a65b4ee9b5e8bd7aa7a9fede9d47b69d82378 /qicclient | |
parent | 4ba15985b35566a99e822673fb355a4f4efa09fc (diff) |
Rename basket to ord
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/client.hxx | 5 | ||||
-rw-r--r-- | qicclient/ord.hxx (renamed from qicclient/basket.hxx) | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/qicclient/client.hxx b/qicclient/client.hxx index c554dab..984996c 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -8,7 +8,7 @@ namespace QICClient { using std::shared_ptr; class Catalog; class Product; - class Basket; + class Ord; class Client : public QObject { @@ -51,8 +51,7 @@ namespace QICClient { * \param catalog The catalog from which the item is. * \param order The order. */ - void order(QString const& sku, Catalog const& catalog, - Basket& order); + void order(QString const& sku, Catalog const& catalog, Ord& order); public slots: /* diff --git a/qicclient/basket.hxx b/qicclient/ord.hxx index 8930821..a3be840 100644 --- a/qicclient/basket.hxx +++ b/qicclient/ord.hxx @@ -1,5 +1,5 @@ -#ifndef QICCLIENT_BASKET_HXX -#define QICCLIENT_BASKET_HXX +#ifndef QICCLIENT_ORD_HXX +#define QICCLIENT_ORD_HXX #include <QAbstractListModel> #include <icclient/ord.h> @@ -27,7 +27,7 @@ namespace QICClient { } }; - class Basket : public QAbstractListModel + class Ord : public QAbstractListModel { Q_OBJECT Q_PROPERTY(int rowCount READ rowCount NOTIFY rowCountChanged) @@ -36,7 +36,7 @@ namespace QICClient { Q_PROPERTY(double totalCost READ totalCost NOTIFY totalCostChanged) public: - explicit Basket(QObject* parent = nullptr) : + explicit Ord(QObject* parent = nullptr) : QAbstractListModel{parent}, m_data{nullptr}, m_subtotal{.0}, @@ -76,4 +76,4 @@ namespace QICClient { } -#endif // QICCLIENT_BASKET_HXX +#endif // QICCLIENT_ORD_HXX |