comparison main/main.cpp @ 377:909cf273bed1 macness

Mac Dock menu uses same import-itunes-action as the File menu
author Dan Stowell <dan.stowell@eecs.qmul.ac.uk>
date Mon, 18 Oct 2010 13:24:38 +0100
parents ca9f27734349
children
comparison
equal deleted inserted replaced
370:ca9f27734349 377:909cf273bed1
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 /*
223 QStringList nowPlaying = iTunesNowPlaying(); 224 QStringList nowPlaying = iTunesNowPlaying();
224 QString theText = nowPlaying.at(0); 225 QString theText = nowPlaying.at(0);
225 if (theText == ""){ 226 if (theText == ""){
226 theText = "[[No current track in iTunes]]"; 227 theText = "[[No current track in iTunes]]";
227 } 228 }
228 dockMenu->addAction(theText); 229 dockMenu->addAction(theText);
230 */
231 dockMenu->addAction(m_mainWindow->m_importITunesAction);
229 qt_mac_set_dock_menu(dockMenu); 232 qt_mac_set_dock_menu(dockMenu);
230 } 233 }
231 #endif 234 #endif
232 235
233 236