octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49644] questdlg displays buttons in reverse o


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #49644] questdlg displays buttons in reverse order
Date: Sat, 17 Dec 2016 20:35:52 -0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #7, bug #49644 (project octave):

This change does work for me with questdlg


diff --git a/libgui/src/dialog.cc b/libgui/src/dialog.cc
--- a/libgui/src/dialog.cc
+++ b/libgui/src/dialog.cc
@@ -136,6 +136,9 @@ MessageDialog::MessageDialog (const QStr
   : QMessageBox (QMessageBox::NoIcon, title.isEmpty () ? " " : title,
                  message, 0, 0)
 {
+  // Override platform-dependent button order
+  setStyleSheet ("* { button-layout: 0 }");
+
   // Create a NonModal message.
   setWindowModality (Qt::NonModal);
 


But this also affects other dialogs, for example the dialog when editing a
file that does not yet exist.

I would think that we want those to agree with the system standard style used
for other dialog boxes. So this is also not quite good enough of a change.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49644>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]