CatalogueTreeWidgetItem.h
28 lines
| 824 B
| text/x-c
|
CLexer
r1129 | #ifndef SCIQLOP_CATALOGUETREEWIDGETITEM_H | |||
#define SCIQLOP_CATALOGUETREEWIDGETITEM_H | ||||
#include <Common/spimpl.h> | ||||
#include <QTreeWidgetItem> | ||||
r1143 | class DBCatalogue; | |||
r1129 | ||||
class CatalogueTreeWidgetItem : public QTreeWidgetItem { | ||||
public: | ||||
r1143 | CatalogueTreeWidgetItem(std::shared_ptr<DBCatalogue> catalogue, | |||
int type = QTreeWidgetItem::Type); | ||||
r1129 | ||||
QVariant data(int column, int role) const override; | ||||
r1140 | void setData(int column, int role, const QVariant &value) override; | |||
r1142 | /// Returns the catalogue represented by the item | |||
r1143 | std::shared_ptr<DBCatalogue> catalogue() const; | |||
r1129 | ||||
r1142 | void setHasChanges(bool value); | |||
r1129 | private: | |||
class CatalogueTreeWidgetItemPrivate; | ||||
spimpl::unique_impl_ptr<CatalogueTreeWidgetItemPrivate> impl; | ||||
}; | ||||
#endif // SCIQLOP_CATALOGUETREEWIDGETITEM_H | ||||