46 void setModel(QAbstractItemModel *model)
override;
52 void drawBranches(QPainter *painter,
const QRect &rect,
const QModelIndex &index)
const override;
53 void currentChanged(
const QModelIndex ¤t,
const QModelIndex &previous)
override;
54 void dataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight,
const QVector<int> &roles = QVector<int>())
override;
55 void rowsInserted(
const QModelIndex &parent,
int start,
int end)
override;
56 bool viewportEvent(QEvent *event)
override;
66 DelegateButton buttonAt(
const QPoint &pos,
const QModelIndex &index)
const;
67 void addMenuActions(QMenu *menu,
const QModelIndex &index);
68 void reverseTraverse(
const QModelIndex &root,
const std::function<
void(
const QModelIndex&)> &callback)
const;
70 void closeTree(
const QModelIndex &root);
71 void unloadTree(
const QModelIndex &root);
75 DelegateButton m_pressedButton = NoButton;
76 QPersistentModelIndex m_pressedIndex;
77 QPersistentModelIndex m_hoveredIndex;
78 bool m_tabsInOrder =
false;
79 bool m_haveTreeModel =
false;
80 int m_backgroundIndentation = 0;
81 QString m_expandedSessionKey;
82 bool m_initializing =
false;
int backgroundIndentation
void setModel(QAbstractItemModel *model) override
void setHaveTreeModel(bool enable)
bool areTabsInOrder() const
TabTreeView(BrowserWindow *window, QWidget *parent=nullptr)
bool haveTreeModel() const
void updateIndex(const QModelIndex &index)
void setBackgroundIndentation(int indentation)
void setTabsInOrder(bool enable)
void adjustStyleOption(QStyleOptionViewItem *option)