Mercurial > hg > sonic-visualiser
comparison main/MainWindow.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 | fad5611ef9db |
comparison
equal
deleted
inserted
replaced
370:ca9f27734349 | 377:909cf273bed1 |
---|---|
444 connect(this, SIGNAL(canImportMoreAudio(bool)), action, SLOT(setEnabled(bool))); | 444 connect(this, SIGNAL(canImportMoreAudio(bool)), action, SLOT(setEnabled(bool))); |
445 m_keyReference->registerShortcut(action); | 445 m_keyReference->registerShortcut(action); |
446 menu->addAction(action); | 446 menu->addAction(action); |
447 | 447 |
448 #ifdef Q_WS_MAC | 448 #ifdef Q_WS_MAC |
449 action = new QAction(tr("Import current track from iTunes"), this); | 449 m_importITunesAction = new QAction(tr("Import current track from iTunes"), this); |
450 action->setShortcut(tr("Ctrl+Alt+I")); | 450 m_importITunesAction->setShortcut(tr("Ctrl+Alt+I")); |
451 action->setStatusTip(tr("Import currently playing/selected iTunes track")); | 451 m_importITunesAction->setStatusTip(tr("Import currently playing/selected iTunes track")); |
452 connect(action, SIGNAL(triggered()), this, SLOT(importITunesAudio())); | 452 connect(m_importITunesAction, SIGNAL(triggered()), this, SLOT(importITunesAudio())); |
453 //connect(this, SIGNAL(canImportITunesAudio(bool)), action, SLOT(setEnabled(bool))); | 453 //connect(this, SIGNAL(canImportITunesAudio(bool)), action, SLOT(setEnabled(bool))); |
454 m_keyReference->registerShortcut(action); | 454 m_keyReference->registerShortcut(m_importITunesAction); |
455 menu->addAction(action); | 455 menu->addAction(m_importITunesAction); |
456 #endif | 456 #endif |
457 | 457 |
458 action = new QAction(tr("&Export Audio File..."), this); | 458 action = new QAction(tr("&Export Audio File..."), this); |
459 action->setStatusTip(tr("Export selection as an audio file")); | 459 action->setStatusTip(tr("Export selection as an audio file")); |
460 connect(action, SIGNAL(triggered()), this, SLOT(exportAudio())); | 460 connect(action, SIGNAL(triggered()), this, SLOT(exportAudio())); |