Commodity - added setting for translate czech chars to numbers (bar code scanner fix).
parent
fe3602fcfc
commit
0ddf8bce92
@ -0,0 +1,16 @@
|
||||
#include "commoditysettings.h"
|
||||
|
||||
CommoditySettings::CommoditySettings(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_codeAsNumber = false;
|
||||
}
|
||||
|
||||
bool CommoditySettings::codeAsNumber() const
|
||||
{
|
||||
return m_codeAsNumber;
|
||||
}
|
||||
|
||||
void CommoditySettings::setCodeAsNumber(bool codeAsNumber)
|
||||
{
|
||||
m_codeAsNumber = codeAsNumber;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
#ifndef COMMODITYSETTINGS_H
|
||||
#define COMMODITYSETTINGS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
|
||||
class CommoditySettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool codeAsNumber READ codeAsNumber WRITE setCodeAsNumber)
|
||||
|
||||
public:
|
||||
explicit CommoditySettings(QObject *parent = 0);
|
||||
|
||||
bool codeAsNumber() const;
|
||||
void setCodeAsNumber(bool codeAsNumber);
|
||||
|
||||
private:
|
||||
bool m_codeAsNumber;
|
||||
};
|
||||
|
||||
typedef QSharedPointer<CommoditySettings> CommoditySettingsPtr;
|
||||
|
||||
#endif // COMMODITYSETTINGS_H
|
Loading…
Reference in New Issue