new enums class in core
binding for combos
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user