Skip to content

Commit ba16133

Browse files
committed
Add an icon for each cover action (popup menu)
1 parent 3d1930a commit ba16133

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed
1.87 KB
Loading
1.57 KB
Loading

res/images/library/ic_cover_unset.png

481 Bytes
Loading

res/mixxx.qrc

+3
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,8 @@
107107
<file>images/library/ic_library_cover_show.png</file>
108108
<file>images/library/ic_library_zoom_in.png</file>
109109
<file>images/library/default_cover.png</file>
110+
<file>images/library/ic_cover_change.png</file>
111+
<file>images/library/ic_cover_reload.png</file>
112+
<file>images/library/ic_cover_unset.png</file>
110113
</qresource>
111114
</RCC>

src/dlgtrackinfo.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,21 @@ void DlgTrackInfo::init(){
7575

7676
// Cover art actions
7777
// change cover art location
78-
QAction* changeCover = new QAction(tr("&Change"), this);
78+
QAction* changeCover = new QAction(
79+
QIcon(":/images/library/ic_cover_change.png"),
80+
tr("&Change"), this);
7981
connect(changeCover, SIGNAL(triggered()),
8082
this, SLOT(slotChangeCoverArt()));
8183
// unset cover art - load default
82-
QAction* unsetCover = new QAction(tr("&Unset"), this);
84+
QAction* unsetCover = new QAction(
85+
QIcon(":/images/library/ic_cover_unset.png"),
86+
tr("&Unset"), this);
8387
connect(unsetCover, SIGNAL(triggered()),
8488
this, SLOT(slotUnsetCoverArt()));
8589
// reload just cover art using the search algorithm (in CoverArtCache)
86-
QAction* reloadCover = new QAction(tr("&Reload"), this);
90+
QAction* reloadCover = new QAction(
91+
QIcon(":/images/library/ic_cover_reload.png"),
92+
tr("&Reload"), this);
8793
connect(reloadCover, SIGNAL(triggered()),
8894
this, SLOT(slotReloadCover()));
8995
// Cover art popup menu

0 commit comments

Comments
 (0)