示例#1
0
MediaDialog::MediaDialog(QWidget* parent)
   : QDialog()
      {
      setupUi(this);
      setWindowTitle(tr("MuseScore: Additional Media"));
      scanFileButton->setIcon(*icons[fileOpen_ICON]);
      audioFileButton->setIcon(*icons[fileOpen_ICON]);

      connect(addScan,         SIGNAL(clicked()), SLOT(addScanPressed()));
      connect(removeScan,      SIGNAL(clicked()), SLOT(removeScanPressed()));
      connect(addAudio,        SIGNAL(clicked()), SLOT(addAudioPressed()));
      connect(removeAudio,     SIGNAL(clicked()), SLOT(removeAudioPressed()));
      connect(scanFileButton,  SIGNAL(clicked()), SLOT(scanFileButtonPressed()));
      connect(audioFileButton, SIGNAL(clicked()), SLOT(audioFileButtonPressed()));
      }
示例#2
0
MediaDialog::MediaDialog(QWidget* /*parent*/)
    : QDialog()
{
    setupUi(this);
    setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
    setWindowTitle(tr("MuseScore: Additional Media"));
    scanFileButton->setIcon(*icons[int(Icons::fileOpen_ICON)]);
    audioFileButton->setIcon(*icons[int(Icons::fileOpen_ICON)]);

    connect(addScan,         SIGNAL(clicked()), SLOT(addScanPressed()));
    connect(removeScan,      SIGNAL(clicked()), SLOT(removeScanPressed()));
    connect(addAudio,        SIGNAL(clicked()), SLOT(addAudioPressed()));
    connect(removeAudio,     SIGNAL(clicked()), SLOT(removeAudioPressed()));
    connect(scanFileButton,  SIGNAL(clicked()), SLOT(scanFileButtonPressed()));
    connect(audioFileButton, SIGNAL(clicked()), SLOT(audioFileButtonPressed()));
}