Skip to content

Commit

Permalink
Add an icon for each cover action (popup menu)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinot committed Jul 18, 2014
1 parent 3d1930a commit ba16133
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Binary file added res/images/library/ic_cover_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/library/ic_cover_reload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/library/ic_cover_unset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions res/mixxx.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,8 @@
<file>images/library/ic_library_cover_show.png</file>
<file>images/library/ic_library_zoom_in.png</file>
<file>images/library/default_cover.png</file>
<file>images/library/ic_cover_change.png</file>
<file>images/library/ic_cover_reload.png</file>
<file>images/library/ic_cover_unset.png</file>
</qresource>
</RCC>
12 changes: 9 additions & 3 deletions src/dlgtrackinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,21 @@ void DlgTrackInfo::init(){

// Cover art actions
// change cover art location
QAction* changeCover = new QAction(tr("&Change"), this);
QAction* changeCover = new QAction(
QIcon(":/images/library/ic_cover_change.png"),
tr("&Change"), this);
connect(changeCover, SIGNAL(triggered()),
this, SLOT(slotChangeCoverArt()));
// unset cover art - load default
QAction* unsetCover = new QAction(tr("&Unset"), this);
QAction* unsetCover = new QAction(
QIcon(":/images/library/ic_cover_unset.png"),
tr("&Unset"), this);
connect(unsetCover, SIGNAL(triggered()),
this, SLOT(slotUnsetCoverArt()));
// reload just cover art using the search algorithm (in CoverArtCache)
QAction* reloadCover = new QAction(tr("&Reload"), this);
QAction* reloadCover = new QAction(
QIcon(":/images/library/ic_cover_reload.png"),
tr("&Reload"), this);
connect(reloadCover, SIGNAL(triggered()),
this, SLOT(slotReloadCover()));
// Cover art popup menu
Expand Down

0 comments on commit ba16133

Please sign in to comment.