comparison 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
comparison
equal deleted inserted replaced
57:3c802806b74a 58:b7a1c0010ffd
14 static QIcon CreateIcon(const char* file); 14 static QIcon CreateIcon(const char* file);
15 15
16 signals: 16 signals:
17 void CurrentItemChanged(int index); 17 void CurrentItemChanged(int index);
18 18
19 public slots:
20 void SetCurrentItem(int index);
21
19 protected: 22 protected:
20 virtual void mouseMoveEvent(QMouseEvent* event) override; 23 virtual void mouseMoveEvent(QMouseEvent* event) override;
21 QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, 24 QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index,
22 const QEvent* event) const override; 25 const QEvent* event) const override;
23 int RemoveSeparatorsFromIndex(int index); 26 int RemoveSeparatorsFromIndex(int index);
27 int AddSeparatorsToIndex(int index);
24 }; 28 };
25 #endif // __gui__sidebar_h 29 #endif // __gui__sidebar_h