Instruments, Page Settings & Insert / Append Measure dialogs - OK and Cancel buttons in wrong order on Mac

• Jun 19, 2019 - 14:50
Reported version
3.1
Priority
P2 - Medium
Type
Graphical (UI)
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
PR created
Regression
No
Workaround
No
Project

Standard order (in general and for MuseScore) is the OK button at the right edge. The order is wrong in this dialog box.

Screenshot 2019-06-19 at 14.41.36.png


Comments

In reply to by mike320

I believe it's usually on the right. Here are some other MuseScore dialogs where that's the case.

Screenshot 2019-06-19 at 16.11.14.png
Screenshot 2019-06-19 at 16.11.31.png
Screenshot 2019-06-19 at 16.11.42.png
Screenshot 2019-06-19 at 16.11.53.png

Is this one of those things where it's different on different operating systems? This shots all from Mac.

There is a QT feature that attempts to lay out button in standard order for the OS. That's not used on the Instruments Dialog, but is used quite widely in MuseScore dialogs.

I believe you are right, OK is generally on the left on Windows so all looks consistent and correct to me on my system, but if it works differently on macOS, that's fine as long as long as it's also correct and consistent, and right now it is apparently inconsistent. Whether they really should all be on the right or not I'll leave to a macOS expert to say.

Seems an easy change, instead of using two QPushButtons using one QDialogButtonBox with an OK and Cancel button, then let Qt deal with the defaults.
This is not the only dialog having this issue, e.g. Page settings, Insert measures

In reply to by Startled Bee

There's some helpful QT article on this: https://doc.qt.io/archives/qq/qq19-buttons.html

What I thought would be a five-minute fix for one dialog turns out to be far from it. Digging around more of the dialogs there's quite a mixture of styles used in MuseScore just now and not so much consistency. For Mac users, at any rate, the ordering of OK and Cancel is inconsistent across dialogs.

Here's an initial list - not doubt with some missing entries:

Need attention - will NOT adapt to different platforms and create inconsistency (at least) on Mac

  • Instrument [instrDialog.ui] manually laid out QPushButton (OK. Cancel) (hard left) - order will not adapt to different platform conventions. In addition manually laid out QPushButton (Load..., Save As) (hard right) - these buttons are made invisible in code. I'm not sure if there's a context in which they are made visible.
  • Page Settings [pagesettings.ui] manually laid out QPushButton (OK, Cancel, Apply, Apply to All Parts) - order will not adapt to different platform conventions.

Probably OK - will at least partly adapt to different platforms

  • Preferences [prefsdialog.ui] uses QDialogButtonBox (OK, Cancel, Apply) and manually laid out QPushButton (hard left)
  • Score properties [metaedit.ui] uses QDialogButtonBox (OK, Cancel) and manually laid out QPushButton (hard left)
  • Format|Style [editstyle.ui] uses QDialogButtonBox (OK, Cancel) and manually laid out QPushButton (show/hide list) (hard right) + the Apply to All Parts button added to the QDialogButtonBox in code.

All good - will adapt to different platforms

  • Parts [excerptsdialog.ui] uses only QDialogButtonBox(OK, Cancel)
  • Add Remove system breaks [breaksdialog.ui] uses only QDialogButtonBox(OK, Cancel)
  • Transpose [transposedialog.ui] uses only QDialogButtonBox(OK, Cancel)
  • Plugin Manager [pluginmanager.ui] uses only QDialogButtonBox(OK, Cancel)
Title Instruments dialog - OK and Cancel button in wrong order on Mac Instruments and Page Settings dialogs - OK and Cancel buttons in wrong order on Mac
Status active PR created
Title Instruments and Page Settings dialogs - OK and Cancel buttons in wrong order on Mac Instruments, Page Settings & Insert / Append Measure dialogs - OK and Cancel buttons in wrong order on Mac