Formatting
This commit is contained in:
@@ -254,10 +254,12 @@ void CollectionView::TotalSongCountUpdated(const int count) {
|
||||
total_song_count_ = count;
|
||||
if (old != total_song_count_) update();
|
||||
|
||||
if (total_song_count_ == 0)
|
||||
if (total_song_count_ == 0) {
|
||||
setCursor(Qt::PointingHandCursor);
|
||||
else
|
||||
}
|
||||
else {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalSongCountUpdated_();
|
||||
|
||||
@@ -269,10 +271,12 @@ void CollectionView::TotalArtistCountUpdated(const int count) {
|
||||
total_artist_count_ = count;
|
||||
if (old != total_artist_count_) update();
|
||||
|
||||
if (total_artist_count_ == 0)
|
||||
if (total_artist_count_ == 0) {
|
||||
setCursor(Qt::PointingHandCursor);
|
||||
else
|
||||
}
|
||||
else {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalArtistCountUpdated_();
|
||||
|
||||
@@ -284,10 +288,12 @@ void CollectionView::TotalAlbumCountUpdated(const int count) {
|
||||
total_album_count_ = count;
|
||||
if (old != total_album_count_) update();
|
||||
|
||||
if (total_album_count_ == 0)
|
||||
if (total_album_count_ == 0) {
|
||||
setCursor(Qt::PointingHandCursor);
|
||||
else
|
||||
}
|
||||
else {
|
||||
unsetCursor();
|
||||
}
|
||||
|
||||
emit TotalAlbumCountUpdated_();
|
||||
|
||||
@@ -548,10 +554,12 @@ void CollectionView::keyboardSearch(const QString &search) {
|
||||
|
||||
void CollectionView::scrollTo(const QModelIndex &idx, ScrollHint hint) {
|
||||
|
||||
if (is_in_keyboard_search_)
|
||||
if (is_in_keyboard_search_) {
|
||||
QTreeView::scrollTo(idx, QAbstractItemView::PositionAtTop);
|
||||
else
|
||||
}
|
||||
else {
|
||||
QTreeView::scrollTo(idx, hint);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user