MagicSmoke  $VERSION$
dommodel.h File Reference
#include <QAbstractItemModel>
#include <DPtrBase>
#include <QDomNode>
#include <functional>
#include "commonexport.h"

Go to the source code of this file.

Classes

class  MDomItemModel
 This is a specialized model type that shows and allows to manipulate a DOM tree. More...
 

Typedefs

typedef std::function
< QVariant(const QDomNode &)> 
MDomModelFunctor
 Special functor that can be used to customize MDomItemModel. More...
 

Functions

 Q_DECLARE_METATYPE (QDomNode)
 
 Q_DECLARE_METATYPE (MDomModelFunctor)
 

Typedef Documentation

typedef std::function<QVariant(const QDomNode&)> MDomModelFunctor

Special functor that can be used to customize MDomItemModel.

Any static function or lambda that takes a QDomNode as argument and returns a QVariant can be used to specialize MDomItemModel. The type of data returned through the QVariant depends on the role the function is supposed to serve. Only one function/lambda can be registered for each role in any given model instance.

Function Documentation

Q_DECLARE_METATYPE ( QDomNode  )
Q_DECLARE_METATYPE ( MDomModelFunctor  )