Added country combo to addressbook. Addressbook plugin depends on Countryregister which must be loaded first.

This commit is contained in:
2017-05-08 14:03:51 +02:00
parent 4c00364698
commit d5ead1b187
11 changed files with 112 additions and 10 deletions
+10 -1
View File
@@ -4,9 +4,11 @@
#include <QString>
#include <QObject>
#include <odb/core.hxx>
#include <QSharedPointer>
#include <data/comboitem.h>
#pragma db object
class CountryData : public QObject
class CountryData : public ComboItem
{
Q_OBJECT
Q_PROPERTY(QString code2 READ code2 WRITE setCode2)
@@ -50,6 +52,13 @@ private:
QString m_englishFullName;
QString m_englishName;
// ComboItem interface
public:
bool eq(ComboItem *other);
QString toString();
};
typedef QSharedPointer<CountryData> CountryDataPtr;
#endif // COUNTRYDATA_H