コード例 #1
0
void ZerberusGui::moveSoundfontInTheList(int currentIdx, int targetIdx)
      {
      QStringList sfonts = zerberus()->soundFonts();
      sfonts.swap(currentIdx, targetIdx);
      zerberus()->removeSoundFonts(zerberus()->soundFonts());
      
      loadSoundFontsAsync(sfonts);
      files->setCurrentRow(targetIdx);
      emit sfChanged();
      }
コード例 #2
0
void ZerberusGui::soundFontUpClicked()
      {
      int row = files->currentRow();
      if (row <= 0)
            return;

      QStringList sfonts = zerberus()->soundFonts();
      sfonts.swap(row, row-1);
      zerberus()->removeSoundFonts(zerberus()->soundFonts());

      loadSoundFontsAsync(sfonts);
      files->setCurrentRow(row-1);
      emit sfChanged();
      }