Skip to content

Commit

Permalink
Merge pull request #49 from cannam/pluginchoice
Browse files Browse the repository at this point in the history
Little improvement to the button appearance
  • Loading branch information
yucongj authored Jul 17, 2024
2 parents 2138761 + c711565 commit 4678981
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion main/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,20 @@ MainWindow::MainWindow(AudioMode audioMode, MIDIMode midiMode, bool withOSCSuppo

m_alignerChoice = new QToolButton();
m_alignerChoice->setPopupMode(QToolButton::InstantPopup);

#ifdef Q_OS_MAC
QChar dot(0x00b7);
m_alignerChoice->setText(QString("%1%2%3").arg(dot).arg(dot).arg(dot));
m_alignerChoice->setFixedSize(22, 22);
#else
m_alignerChoice->setArrowType(Qt::DownArrow);

#endif

m_alignCommands = new QWidget;
QHBoxLayout *aclayout = new QHBoxLayout;
aclayout->addWidget(m_alignButton);
aclayout->addWidget(m_alignerChoice);
aclayout->setContentsMargins(0, 0, 0, 0);
m_alignCommands->setLayout(aclayout);

m_alignAcceptButton = new QPushButton
Expand All @@ -291,6 +299,7 @@ MainWindow::MainWindow(AudioMode audioMode, MIDIMode midiMode, bool withOSCSuppo
QHBoxLayout *aalayout = new QHBoxLayout;
aalayout->addWidget(m_alignAcceptButton);
aalayout->addWidget(m_alignRejectButton);
aalayout->setContentsMargins(0, 0, 0, 0);
m_alignAcceptReject->setLayout(aalayout);

m_scorePageDownButton = new QPushButton("<<");
Expand Down
4 changes: 2 additions & 2 deletions repoint-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"pin": "63e0c3b37b6fb9ce6f074ea8222b4903e4f5568a"
},
"svcore": {
"pin": "e423b267d1f8be85f03e4335b95e39b0f68dd3d2"
"pin": "3289c5e8e506583ecb71797d15a984aeb1797920"
},
"svgui": {
"pin": "2796d24d9e1918d3ed12057f801ca07c9c1032a3"
Expand Down Expand Up @@ -52,7 +52,7 @@
"pin": "2e4bd170f57f"
},
"piano-precision-aligner": {
"pin": "5e30b8c5b998ce03d46352a84f5b9c8c0734371c"
"pin": "ea967162dcc582a8354d4b8a6ae3b3a2a914589d"
}
}
}

0 comments on commit 4678981

Please sign in to comment.