SymbolDialog::SymbolDialog(QWidget* parent) : QWidget(parent, Qt::WindowFlags(Qt::Dialog | Qt::Window)) { setupUi(this); int idx = 0; int currentIndex = 0; for (const ScoreFont& f : ScoreFont::scoreFonts()) { fontList->addItem(f.name()); if (f.name() == "Bravura") currentIndex = idx; ++idx; } fontList->setCurrentIndex(currentIndex); setWindowTitle(tr("MuseScore: Symbols")); QLayout* l = new QVBoxLayout(); frame->setLayout(l); createSymbolPalette(); QScrollArea* sa = new PaletteScrollArea(sp); l->addWidget(sa); sp->setAcceptDrops(false); sp->setDrawGrid(true); sp->setSelectable(true); connect(systemFlag, SIGNAL(stateChanged(int)), SLOT(systemFlagChanged(int))); connect(fontList, SIGNAL(currentIndexChanged(int)), SLOT(systemFontChanged(int))); sa->setWidget(sp); }
SymbolDialog::SymbolDialog(QWidget* parent) : QWidget(parent, Qt::WindowFlags(Qt::Dialog | Qt::Window)) { setupUi(this); setWindowTitle(tr("MuseScore: Symbols")); QLayout* l = new QVBoxLayout(); frame->setLayout(l); createSymbolPalette(); QScrollArea* sa = new PaletteScrollArea(sp); l->addWidget(sa); sp->setAcceptDrops(false); sp->setDrawGrid(true); sp->setSelectable(true); connect(systemFlag, SIGNAL(stateChanged(int)), SLOT(systemFlagChanged(int))); sa->setWidget(sp); }