##// END OF EJS Templates
Sets the name of the plugin for products and components...
Sets the name of the plugin for products and components Since there is only one common root in the data source widget, it is no longer possible to retrieve on the fly the name of the plugin in which a component or product is located. This name is therefore attached to their creation.

File last commit:

r477:eab21078feec
r1076:9c3bb5e93c54
Show More
DataSourceTreeWidgetItem.h
37 lines | 1.1 KiB | text/x-c | CLexer
/ gui / include / DataSource / DataSourceTreeWidgetItem.h
Alexandre Leroux
Defines the QTreeWidgetItem for a data source item
r80 #ifndef SCIQLOP_DATASOURCETREEWIDGETITEM_H
#define SCIQLOP_DATASOURCETREEWIDGETITEM_H
#include <Common/spimpl.h>
#include <QLoggingCategory>
#include <QTreeWidgetItem>
Q_DECLARE_LOGGING_CATEGORY(LOG_DataSourceTreeWidgetItem)
class DataSourceItem;
/**
* @brief The DataSourceTreeWidgetItem is the graphical representation of a data source item. It is
* intended to be displayed in a QTreeWidget.
* @sa DataSourceItem
*/
class DataSourceTreeWidgetItem : public QTreeWidgetItem {
public:
explicit DataSourceTreeWidgetItem(const DataSourceItem *data, int type = Type);
explicit DataSourceTreeWidgetItem(QTreeWidget *parent, const DataSourceItem *data,
int type = Type);
Alexandre Leroux
Implements filter function for data source...
r477 const DataSourceItem *data() const;
Alexandre Leroux
Defines the QTreeWidgetItem for a data source item
r80 virtual QVariant data(int column, int role) const override;
virtual void setData(int column, int role, const QVariant &value) override;
Alexandre Leroux
Adds actions for items in the DataSourceWidget...
r142 /// @return the actions associated to the item
QList<QAction *> actions() const noexcept;
Alexandre Leroux
Defines the QTreeWidgetItem for a data source item
r80 private:
class DataSourceTreeWidgetItemPrivate;
spimpl::unique_impl_ptr<DataSourceTreeWidgetItemPrivate> impl;
};
#endif // SCIQLOP_DATASOURCETREEWIDGETITEM_H