Correct WX check for DPI handler calls
This commit is contained in:
parent
14886e426b
commit
89eeba3312
|
@ -41,7 +41,7 @@ WX_GRID::WX_GRID( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxS
|
|||
// Make sure the GUI font scales properly on GTK
|
||||
SetDefaultCellFont( KIUI::GetControlFont( this ) );
|
||||
|
||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||
#if wxCHECK_VERSION( 3, 1, 3 )
|
||||
Connect( wxEVT_DPI_CHANGED, wxDPIChangedEventHandler( WX_GRID::onDPIChanged ), nullptr, this );
|
||||
#endif
|
||||
|
||||
|
@ -53,14 +53,14 @@ WX_GRID::~WX_GRID()
|
|||
if( m_weOwnTable )
|
||||
DestroyTable( GetTable() );
|
||||
|
||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||
#if wxCHECK_VERSION( 3, 1, 3 )
|
||||
Disconnect( wxEVT_DPI_CHANGED, wxDPIChangedEventHandler( WX_GRID::onDPIChanged ), nullptr, this );
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||
#if wxCHECK_VERSION( 3, 1, 3 )
|
||||
void WX_GRID::onDPIChanged(wxDPIChangedEvent& aEvt)
|
||||
{
|
||||
/// This terrible hack is a way to avoid the incredibly disruptive resizing of grids that happens on Macs
|
||||
|
|
|
@ -122,7 +122,7 @@ protected:
|
|||
void onGridColMove( wxGridEvent& aEvent );
|
||||
void onGridCellSelect( wxGridEvent& aEvent );
|
||||
|
||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||
#if wxCHECK_VERSION( 3, 1, 3 )
|
||||
void onDPIChanged(wxDPIChangedEvent& event);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue