Buttons are backwards on Apply new Styles dialog on Windows.

• Dec 8, 2020 - 14:09
Reported version
3.x-dev
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

New Styles dialog.PNG

In windows programs the OK or accept button is on the left and the cancel or no button is on the right. I keep clicking the wrong button because they are backwards.


Comments

In the MacOS version of MuseScore there are related issues with Cancel button and OK button placement.

In the following dialogs MuseScore erroneously places OK on left & Cancel on right:

    Edit>Instruments ...
    Add>Measures>Append Measures ...
    Add>Measures>Insert Measures ...
    Style>Page Settings ...

In MacOS the OK button goes on the right.

This is important for the reason stated in the opening post: " I keep clicking the wrong button because they are backwards."

I was very clear to say this is on Windows. I didn't mention Linux which I'm not sure about and I know it's normal on Mac.

It is generally happening when not using Qt's QDialogButtonBox, but 'manually' cobble together some QPushButton without taking care of their order (in the same manual fashion), depending on OS.
And indeed ' instrdialog.ui', 'measuresdialog.ui', 'insertmeasuresdialog.ui' and 'pagesettings.ui' do that (or rather don't). There are probably some more of those, like 'metaedit.ui'.

As is, in this case here, 'ScoreMigrationDialog.qml', which uses the StyledButton from '../palette/StyledButton.qml', as there is no(t yet a) 'StyledDialogButtonBox.qml'...

It is not just Windows vs. Mac, vs. Linux though, but even in Linux it differs depending desktop environment, like KDE vs. Gnome, see https://doc.qt.io/qt-5/qdialogbuttonbox.html#ButtonLayout-enum

Fix version
3.6.0