01-17-2013 06:03 PM
Hi all,
I'm trying to build an app that perform some filtering when some text is entered. I'm using an XmlDatamodel for that, but I don't know how to acces the data inside the parent class.
This is the header file:
#ifndef CustomXmlDataModel_HPP_
#define CustomXmlDataModel_HPP_
#include <QObject>
#include <bb/cascades/XmlDataModel>
class CustomXmlDataModel: public bb::cascades::XmlDataModel {
Q_OBJECT
public:
Q_INVOKABLE
void setFilter(const QString& file_name);
};
#endif /* CustomXmlDataModel_HPP_ */and this is the cpp file:
#include "CustomXmlDataModel.hpp"
void CustomXmlDataModel::setFilter(const QString& filter) {
qDebug() << "filter setted: " + filter;
}Can any body help me??