Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 370:ca9f27734349 macness
svitunes: retrieve the genre metadata, as well as the path
author | Dan Stowell <dan.stowell@eecs.qmul.ac.uk> |
---|---|
date | Fri, 15 Oct 2010 11:07:11 +0100 |
parents | 726e1c1382f3 |
children | 909cf273bed1 |
comparison
equal
deleted
inserted
replaced
369:8b3038e55d50 | 370:ca9f27734349 |
---|---|
218 | 218 |
219 #ifdef Q_WS_MAC | 219 #ifdef Q_WS_MAC |
220 void setupDockMenu() { | 220 void setupDockMenu() { |
221 std::cerr << "SV adding mac dock menu" << std::endl; | 221 std::cerr << "SV adding mac dock menu" << std::endl; |
222 QMenu *dockMenu = new QMenu(); | 222 QMenu *dockMenu = new QMenu(); |
223 QString theText = iTunesNowPlayingPath(); | 223 QStringList nowPlaying = iTunesNowPlaying(); |
224 QString theText = nowPlaying.at(0); | |
224 if (theText == ""){ | 225 if (theText == ""){ |
225 theText = "[[No current track in iTunes]]"; | 226 theText = "[[No current track in iTunes]]"; |
226 } | 227 } |
227 dockMenu->addAction(theText); | 228 dockMenu->addAction(theText); |
228 qt_mac_set_dock_menu(dockMenu); | 229 qt_mac_set_dock_menu(dockMenu); |