|
|
@ -3,6 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
#include <QDecDouble.hh>
|
|
|
|
|
|
|
|
|
|
|
|
class GlobalSettings : public QObject
|
|
|
|
class GlobalSettings : public QObject
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -17,6 +18,9 @@ class GlobalSettings : public QObject
|
|
|
|
Q_PROPERTY(QString dic READ dic WRITE setDic)
|
|
|
|
Q_PROPERTY(QString dic READ dic WRITE setDic)
|
|
|
|
Q_PROPERTY(bool vatPayer READ vatPayer WRITE setVatPayer)
|
|
|
|
Q_PROPERTY(bool vatPayer READ vatPayer WRITE setVatPayer)
|
|
|
|
Q_PROPERTY(QString logoPath READ logoPath WRITE setLogoPath)
|
|
|
|
Q_PROPERTY(QString logoPath READ logoPath WRITE setLogoPath)
|
|
|
|
|
|
|
|
Q_PROPERTY(QDecDouble vatHigh READ vatHigh WRITE setVatHigh)
|
|
|
|
|
|
|
|
Q_PROPERTY(QDecDouble vatFirstLower READ vatFirstLower WRITE setVatFirstLower)
|
|
|
|
|
|
|
|
Q_PROPERTY(QDecDouble vatSecondLower READ vatSecondLower WRITE setVatSecondLower)
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit GlobalSettings(QObject *parent = 0);
|
|
|
|
explicit GlobalSettings(QObject *parent = 0);
|
|
|
|
|
|
|
|
|
|
|
@ -47,6 +51,15 @@ public:
|
|
|
|
QString logoPath() const;
|
|
|
|
QString logoPath() const;
|
|
|
|
void setLogoPath(const QString &logoPath);
|
|
|
|
void setLogoPath(const QString &logoPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QDecDouble vatHigh() const;
|
|
|
|
|
|
|
|
void setVatHigh(QDecDouble vatHigh);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QDecDouble vatFirstLower() const;
|
|
|
|
|
|
|
|
void setVatFirstLower(QDecDouble vatFirstLower);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QDecDouble vatSecondLower() const;
|
|
|
|
|
|
|
|
void setVatSecondLower(QDecDouble vatSecondLower);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
QString m_firmName;
|
|
|
|
QString m_firmName;
|
|
|
|
QString m_street;
|
|
|
|
QString m_street;
|
|
|
@ -57,6 +70,9 @@ private:
|
|
|
|
QString m_dic;
|
|
|
|
QString m_dic;
|
|
|
|
bool m_vatPayer;
|
|
|
|
bool m_vatPayer;
|
|
|
|
QString m_logoPath;
|
|
|
|
QString m_logoPath;
|
|
|
|
|
|
|
|
int m_vatHigh;
|
|
|
|
|
|
|
|
int m_vatFirstLower;
|
|
|
|
|
|
|
|
int m_vatSecondLower;
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
signals:
|
|
|
|
|
|
|
|
|
|
|
|