Commit dc054ce5 authored by Leander Schulten's avatar Leander Schulten
Browse files

new Interface Method for qml

parent ddd84f3c
......@@ -4,6 +4,7 @@
#include <QObject>
#include "device.h"
#include "programmprototype.h"
#include "programm.h"
class ModelManager : public QObject{
Q_OBJECT
......@@ -34,6 +35,11 @@ public:
return false;
}
Q_INVOKABLE bool addProgramm(QString name, QString description=""){
new Programm(name,description);
return true;
}
};
#endif // MODELMANAGER_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment