39 QModelIndex
indexAfter(
const QModelIndex &index)
const;
40 QModelIndex
indexBefore(
const QModelIndex &index)
const;
43 void currentChanged(
const QModelIndex ¤t,
const QModelIndex &previous)
override;
44 void dataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight,
const QVector<int> &roles = QVector<int>())
override;
45 void rowsInserted(
const QModelIndex &parent,
int start,
int end)
override;
46 void rowsAboutToBeRemoved(
const QModelIndex &parent,
int start,
int end)
override;
47 bool viewportEvent(QEvent *event)
override;
54 DelegateButton buttonAt(
const QPoint &pos,
const QModelIndex &index)
const;
55 void updateVisibility();
60 DelegateButton m_pressedButton = NoButton;
61 QModelIndex m_pressedIndex;
62 bool m_hideWhenEmpty =
false;
void adjustStyleOption(QStyleOptionViewItem *option)
TabListView(BrowserWindow *window, QWidget *parent=nullptr)
QModelIndex indexBefore(const QModelIndex &index) const
void updateIndex(const QModelIndex &index)
bool isHidingWhenEmpty() const
QModelIndex indexAfter(const QModelIndex &index) const
void setHideWhenEmpty(bool enable)