Mercurial > minori
comparison src/gui/widgets/sidebar.cpp @ 62:4c6dd5999b39
*: update
1. updated animia
2. use widestrings for filesystem on Windows
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 06:16:06 -0400 |
| parents | b7a1c0010ffd |
| children | 3d2decf093bb |
comparison
equal
deleted
inserted
replaced
| 61:327568ad9be9 | 62:4c6dd5999b39 |
|---|---|
| 24 connect(this, &QListWidget::currentRowChanged, this, | 24 connect(this, &QListWidget::currentRowChanged, this, |
| 25 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); }); | 25 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); }); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void SideBar::SetCurrentItem(int index) { | 28 void SideBar::SetCurrentItem(int index) { |
| 29 qDebug() << AddSeparatorsToIndex(index) << "\n"; | |
| 30 setCurrentRow(AddSeparatorsToIndex(index)); | 29 setCurrentRow(AddSeparatorsToIndex(index)); |
| 31 } | 30 } |
| 32 | 31 |
| 33 QListWidgetItem* SideBar::AddItem(QString name, QIcon icon) { | 32 QListWidgetItem* SideBar::AddItem(QString name, QIcon icon) { |
| 34 QListWidgetItem* item = new QListWidgetItem(this); | 33 QListWidgetItem* item = new QListWidgetItem(this); |
