Add love button

This commit is contained in:
Jonas Kvinge
2019-06-12 00:38:52 +02:00
parent fb5a53435e
commit 4875d319dc
24 changed files with 233 additions and 32 deletions

View File

@@ -80,6 +80,7 @@ GlobalShortcuts::GlobalShortcuts(QWidget *parent)
AddShortcut("shuffle_mode", "Change shuffle mode", SIGNAL(CycleShuffleMode()));
AddShortcut("repeat_mode", "Change repeat mode", SIGNAL(CycleRepeatMode()));
AddShortcut("toggle_scrobbling", "Enable/disable scrobbling", SIGNAL(ToggleScrobbling()));
AddShortcut("love", "Love", SIGNAL(Love()));
// Create backends - these do the actual shortcut registration
#ifdef HAVE_DBUS

View File

@@ -85,6 +85,7 @@ class GlobalShortcuts : public QWidget {
void CycleRepeatMode();
void RemoveCurrentSong();
void ToggleScrobbling();
void Love();
private:
void AddShortcut(const QString &id, const QString &name, const char *signal, const QKeySequence &default_key = QKeySequence(0));