Skip to content

Commit

Permalink
Merge pull request #5574 from jthistle/298703-edit-drumset-btn-too-small
Browse files Browse the repository at this point in the history
fix #298703: edit drumset button is too small for some translations
  • Loading branch information
dmitrio95 committed Feb 11, 2020
2 parents 2f13bcd + b391062 commit 0de301e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mscore/drumtools.cpp
Expand Up @@ -60,11 +60,12 @@ DrumTools::DrumTools(QWidget* parent)
pitchName->setWordWrap(true);
pitchName->setContentsMargins(25, 0, 25, 0);
layout1->addWidget(pitchName);

QHBoxLayout* buttonLayout = new QHBoxLayout;
buttonLayout->setContentsMargins(25, 10, 25, 10);
buttonLayout->setContentsMargins(5, 5, 5, 5);
editButton = new QToolButton;
editButton->setMinimumWidth(100);
editButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
editButton->setMinimumWidth(175);
editButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding));
buttonLayout->addWidget(editButton);
layout1->addLayout(buttonLayout);
layout->addLayout(layout1);
Expand Down Expand Up @@ -149,7 +150,7 @@ void DrumTools::updateDrumset(const Drumset* ds)
noteheadSym = drumset->noteHeads(pitch, NoteHead::Type::HEAD_QUARTER);
else
noteheadSym = note->noteHead(true, noteHead, NoteHead::Type::HEAD_QUARTER);

note->setCachedNoteheadSym(noteheadSym); // we use the cached notehead so we don't recompute it at each layout
chord->add(note);
int sc = drumset->shortcut(pitch);
Expand Down

0 comments on commit 0de301e

Please sign in to comment.