Fix menu bar background colour in wxQt
wxMenuBar is a native, not generic, window, so pass "false" to PostCreation() to use the correct colours for it.
This commit is contained in:
committed by
Vadim Zeitlin
parent
9cef8282ab
commit
1adc3ba4ee
@@ -162,13 +162,13 @@ QMenu *wxMenu::GetHandle() const
|
||||
wxMenuBar::wxMenuBar()
|
||||
{
|
||||
m_qtMenuBar = new QMenuBar();
|
||||
PostCreation();
|
||||
PostCreation(false);
|
||||
}
|
||||
|
||||
wxMenuBar::wxMenuBar( long WXUNUSED( style ))
|
||||
{
|
||||
m_qtMenuBar = new QMenuBar();
|
||||
PostCreation();
|
||||
PostCreation(false);
|
||||
}
|
||||
|
||||
wxMenuBar::wxMenuBar(size_t count, wxMenu *menus[], const wxString titles[], long WXUNUSED( style ))
|
||||
@@ -178,7 +178,7 @@ wxMenuBar::wxMenuBar(size_t count, wxMenu *menus[], const wxString titles[], lon
|
||||
for ( size_t i = 0; i < count; ++i )
|
||||
Append( menus[ i ], titles[ i ] );
|
||||
|
||||
PostCreation();
|
||||
PostCreation(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user