##// END OF EJS Templates
Product field now display products event list instead of only its size
Product field now display products event list instead of only its size

File last commit:

r1356:3771be3f513d
r1364:6ea80a9a6c65
Show More
CatalogueAbstractTreeItem.h
36 lines | 1.2 KiB | text/x-c | CLexer
Refactoring of catalogue: use a custom item class
r1284 #ifndef SCIQLOP_CATALOGUEABSTRACTTREEITEM_H
#define SCIQLOP_CATALOGUEABSTRACTTREEITEM_H
#include <Common/spimpl.h>
#include <QVariant>
#include <QVector>
class QMimeData;
class CatalogueAbstractTreeItem {
public:
constexpr static const int DEFAULT_TYPE = -1;
CatalogueAbstractTreeItem(int type = DEFAULT_TYPE);
virtual ~CatalogueAbstractTreeItem();
void addChild(CatalogueAbstractTreeItem *child);
Add catalogue handling
r1356 void removeChild(CatalogueAbstractTreeItem *child);
Refactoring of catalogue: use a custom item class
r1284 QVector<CatalogueAbstractTreeItem *> children() const;
CatalogueAbstractTreeItem *parent() const;
int type() const;
QString text(int column = 0) const;
virtual QVariant data(int column, int role) const;
virtual Qt::ItemFlags flags(int column) const;
virtual bool setData(int column, int role, const QVariant &value);
virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action);
Drop of events on a catalogue
r1285 virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action);
Refactoring of catalogue: use a custom item class
r1284
private:
class CatalogueAbstractTreeItemPrivate;
spimpl::unique_impl_ptr<CatalogueAbstractTreeItemPrivate> impl;
};
#endif // SCIQLOP_CATALOGUEABSTRACTTREEITEM_H