Mercurial > minori
diff include/gui/widgets/sidebar.h @ 58:b7a1c0010ffd
sidebar: link view menu and sidebar together
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 28 Sep 2023 13:32:21 -0400 |
parents | d0adc4aedfc8 |
children | 27a19dd6cba1 |
line wrap: on
line diff
--- a/include/gui/widgets/sidebar.h Thu Sep 28 13:09:11 2023 -0400 +++ b/include/gui/widgets/sidebar.h Thu Sep 28 13:32:21 2023 -0400 @@ -16,10 +16,14 @@ signals: void CurrentItemChanged(int index); + public slots: + void SetCurrentItem(int index); + protected: virtual void mouseMoveEvent(QMouseEvent* event) override; QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const override; int RemoveSeparatorsFromIndex(int index); + int AddSeparatorsToIndex(int index); }; #endif // __gui__sidebar_h