Disable Qt's automatic "auto default" state for buttons
Let the wx layer handle default-ness, as the auto behaviour has unhappy consequences that can't be controlled via the wx API. (For example, a Delete button being considered default simply because it's the first button in the dialog.) Closes https://github.com/wxWidgets/wxWidgets/pull/1366
This commit is contained in:
parent
9a64acbb79
commit
fcd6ee5324
@ -85,8 +85,9 @@ wxAnyButton::wxAnyButton() :
|
||||
|
||||
void wxAnyButton::QtCreate(wxWindow *parent)
|
||||
{
|
||||
// create the default push button (used in button and bmp button)
|
||||
m_qtPushButton = new wxQtPushButton( parent, this );
|
||||
// create the basic push button (used in button and bmp button)
|
||||
m_qtPushButton = new wxQtPushButton(parent, this);
|
||||
m_qtPushButton->setAutoDefault(false);
|
||||
}
|
||||
|
||||
void wxAnyButton::QtSetBitmap( const wxBitmap &bitmap )
|
||||
|
Loading…
Reference in New Issue
Block a user