##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r1285:964109cb8b70
r1308:41b7c6aab8be
Show More
CatalogueTreeItem.h
28 lines | 974 B | text/x-c | CLexer
Refactoring of catalogue: use a custom item class
r1284 #ifndef SCIQLOP_CATALOGUETREEITEM_H
#define SCIQLOP_CATALOGUETREEITEM_H
#include <Catalogue/CatalogueTreeItems/CatalogueAbstractTreeItem.h>
#include <Common/spimpl.h>
class DBCatalogue;
class CatalogueTreeItem : public CatalogueAbstractTreeItem {
public:
CatalogueTreeItem(std::shared_ptr<DBCatalogue> catalogue, const QIcon &icon, int type);
QVariant data(int column, int role) const override;
bool setData(int column, int role, const QVariant &value) override;
Qt::ItemFlags flags(int column) const override;
bool canDropMimeData(const QMimeData *data, Qt::DropAction action) override;
Drop of events on a catalogue
r1285 bool dropMimeData(const QMimeData *data, Qt::DropAction action) override;
Refactoring of catalogue: use a custom item class
r1284
/// Returns the catalogue represented by the item
std::shared_ptr<DBCatalogue> catalogue() const;
private:
class CatalogueTreeItemPrivate;
spimpl::unique_impl_ptr<CatalogueTreeItemPrivate> impl;
};
#endif // SCIQLOP_CATALOGUETREEITEM_H