@@ -16,9 +16,7 @@
16 * License along with this program. If not, see <http://www.gnu.org/licenses/>
16 * License along with this program. If not, see <http://www.gnu.org/licenses/>
20#include <QLocale>
19#include <QLocale>
23#include <libpay/pay-package.h>
21#include <libpay/pay-package.h>
@@ -86,7 +84,7 @@ QString Payments::formattedPrice() const
87void Payments::setCurrency(const QString ¤cy)
85void Payments::setCurrency(const QString ¤cy)
89− if(m_currency != currency){
87+ if(m_currency != currency) {
90 m_currency = currency;
88 m_currency = currency;
91 Q_EMIT currencyChanged(currency);
89 Q_EMIT currencyChanged(currency);
92 Q_EMIT formattedPriceChanged(formattedPrice());
90 Q_EMIT formattedPriceChanged(formattedPrice());
@@ -95,7 +93,7 @@ void Payments::setCurrency(const QString ¤cy)
96void Payments::setPrice(const double price)
94void Payments::setPrice(const double price)
98− if(m_price != price){
96+ if(m_price != price) {
99 m_price = price;
97 m_price = price;
100 Q_EMIT priceChanged(price);
98 Q_EMIT priceChanged(price);
101 Q_EMIT formattedPriceChanged(formattedPrice());
99 Q_EMIT formattedPriceChanged(formattedPrice());
@@ -104,7 +102,7 @@ void Payments::setPrice(const double price)
105void Payments::setStoreItemId(const QString &store_item_id)
103void Payments::setStoreItemId(const QString &store_item_id)
107− if (m_store_item_id != store_item_id){
105+ if (m_store_item_id != store_item_id) {
108 m_store_item_id = store_item_id;
106 m_store_item_id = store_item_id;
109 Q_EMIT storeItemIdChanged(m_store_item_id);
107 Q_EMIT storeItemIdChanged(m_store_item_id);
@@ -113,12 +111,10 @@ void Payments::setStoreItemId(const QString &store_item_id)
116− pay_package_item_start_verification(m_package,
114+ pay_package_item_start_verification(m_package, m_store_item_id.toLocal8Bit().data());
117− m_store_item_id.toLocal8Bit().data());
120void Payments::start()
117void Payments::start()
122− pay_package_item_start_purchase(m_package,
119+ pay_package_item_start_purchase(m_package, m_store_item_id.toLocal8Bit().data());
123− m_store_item_id.toLocal8Bit().data());