Skip to content

Commit

Permalink
Title: fix The music sidebar, the little animation that's playing isn't
Browse files Browse the repository at this point in the history
very clear

Description:
bug : 17662 【音乐】【6.0.0】【UI】音乐的侧边栏,正在播放的那个小动画不太清晰

RootCause:Null

Solution:
设置控件的大小
  • Loading branch information
tangpeng committed Apr 1, 2020
1 parent 33cacf6 commit b317864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/music-player/view/widget/musiclistview.cpp
Expand Up @@ -60,7 +60,6 @@ MusicListView::MusicListView(QWidget *parent) : DListView(parent)
setFont(font);

setIconSize( QSize(20, 20) );
// setGridSize( QSize(40, 40) );
setItemSize(QSize(40, 40));

setFrameShape(QFrame::NoFrame);
Expand Down Expand Up @@ -259,7 +258,9 @@ void MusicListView::setCurPlaylist(QStandardItem *item)
itemActionList.first()->setIcon(playingIcon);
} else {
DViewItemActionList actionList;
auto viewItemAction = new DViewItemAction(Qt::AlignCenter);

/*----------delegate QSize-----------*/
auto viewItemAction = new DViewItemAction(Qt::AlignCenter, QSize(20, 20));
viewItemAction->setIcon(playingIcon);
actionList.append(viewItemAction);
curItem->setActionList(Qt::RightEdge, actionList);
Expand Down

0 comments on commit b317864

Please sign in to comment.