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: Rik
Subject: [Octave-bug-tracker] [bug #49644] questdlg displays buttons in reverse order
Date: Sat, 19 Nov 2016 00:13:24 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

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

That looks like a good option.  There is also using a proxy style.

http://stackoverflow.com/questions/29485179/how-to-swap-the-cancel-and-ok-button-on-qinputdialog-widget


class MyProxyStyle : public QProxyStyle
{
  public:
    int styleHint(StyleHint hint, const QStyleOption *option = 0,
                  const QWidget *widget = 0, QStyleHintReturn *returnData = 0)
const
    {
       if (hint == SH_DialogButtonLayout) {
           //return QDialogButtonBox::GnomeLayout;
           return QDialogButtonBox::MacLayout;
         }
        return QProxyStyle::styleHint(hint, option, widget, returnData);
    }
};


I've tried both options and neither of them are changing the order for me
though.



    _______________________________________________________

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]