32 TreeWidget(QWidget * _parentWidget = (QWidget*)
nullptr);
40 virtual QWidget*
getQWidget(
void)
override {
return this; };
41 virtual const QWidget*
getQWidget(
void)
const override {
return this; };
43 QTreeWidgetItem* findItem(
const QString& _itemPath,
char _delimiter =
'/')
const;
48 bool itemExists(
const QString& _itemPath,
char _delimiter =
'/')
const {
return this->findItem(_itemPath, _delimiter); };
54 bool itemTextExists(
const QString& _itemText)
const;
56 QString getItemPath(QTreeWidgetItem* _item,
char _delimiter =
'/')
const;
62 void deselectAll(
void);
68 virtual void mousePressEvent(QMouseEvent* _event)
override;
70 virtual void drawRow(QPainter* _painter,
const QStyleOptionViewItem& _options,
const QModelIndex& _index)
const override;
81 bool itemTextExists(QTreeWidgetItem* _parent,
const QString& _itemText)
const;
83 QTreeWidgetItem* findItem(QTreeWidgetItem* _item,
const QStringList& _childPath)
const;
85 QTreeWidgetItem* findItemText(QTreeWidgetItem* _parent,
const QString& _itemText)
const;
92 void slotColorStyleAboutToChange(
void);
93 void slotColorStyleChanged(
const ColorStyle& _style);
96 std::list<int> m_columnWidths;
103 void destroyRecursive(QTreeWidgetItem* _item);