new enums class in core

binding for combos
This commit is contained in:
Zdenek Jonak
2016-02-18 21:51:18 +01:00
parent 580b623aca
commit 5846f8757e
9 changed files with 104 additions and 23 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void Context::loadPlugins()
m_plugins.append(new Users);
m_plugins.append(new Roles);
QDir pluginsDir(qApp->applicationDirPath() + "/../../plugins");
QDir pluginsDir(qApp->applicationDirPath() + "/../plugins");
foreach (QString fileName, pluginsDir.entryList(QStringList() << "*.so" << "*.dll")) {
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
+2 -1
View File
@@ -88,7 +88,8 @@ HEADERS += core.h\
data/core_global.h \
iservice.h \
combodata.h \
data/comboitem.h
data/comboitem.h \
enums.h
unix {
target.path = /usr/lib
+20
View File
@@ -0,0 +1,20 @@
#ifndef ENUMS_H
#define ENUMS_H
#include <QObject>
class Enums : public QObject
{
Q_OBJECT
Q_ENUMS(VatType)
public:
enum VatType { HIGH,FIRST_LOWER,SECOND_LOWER };
Enums()
{
}
};
#endif // ENUMS_H