implement custom SpinBox Delegeta for QML ListView
preperation for Config usage from c++
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include "qmlconfigwrapper.h"
|
||||
#include "configfile.h"
|
||||
|
||||
QmlConfigWrapper::QmlConfigWrapper(ConfigFile *c)
|
||||
:QObject(), myConfig(c)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QmlConfigWrapper::~QmlConfigWrapper()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QmlConfigWrapper::QmlConfigWrapper(const QmlConfigWrapper&)
|
||||
:QObject()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef QMLCONFIGWRAPPER_H
|
||||
#define QMLCONFIGWRAPPER_H
|
||||
#include <QtCore>
|
||||
|
||||
class ConfigFile;
|
||||
|
||||
class QmlConfigWrapper: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QmlConfigWrapper(ConfigFile *c);
|
||||
~QmlConfigWrapper();
|
||||
QmlConfigWrapper(const QmlConfigWrapper&);
|
||||
|
||||
private:
|
||||
ConfigFile *myConfig;
|
||||
};
|
||||
|
||||
#endif // QMLCONFIGWRAPPER_H
|
||||
Reference in New Issue
Block a user