From c9417c41f513a2c8e37aa2129477e505ee16716d Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 9 Jun 2015 18:03:56 +0200 Subject: [PATCH] Fix PCH-less build after cb6efbd. Add missing wx/settings.h inclusion. --- include/wx/propgrid/propgrid.h | 5 +---- src/propgrid/propgrid.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index 03ab0b5092..ef09f1e7d9 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -1557,10 +1557,7 @@ public: wxString& src_str ); // Checks system screen design used for laying out various dialogs. - static bool IsSmallScreen() - { - return wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA; - } + static bool IsSmallScreen(); /** Returns rectangle that fully contains properties between and including diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 27bc95b18a..4cef09ac8a 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -46,6 +46,7 @@ #include "wx/intl.h" #include "wx/frame.h" #include "wx/textctrl.h" + #include "wx/settings.h" #endif @@ -1842,6 +1843,13 @@ wxString& wxPropertyGrid::CreateEscapeSequences( wxString& dst_str, wxString& sr // ----------------------------------------------------------------------- +bool wxPropertyGrid::IsSmallScreen() +{ + return wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA; +} + +// ----------------------------------------------------------------------- + wxPGProperty* wxPropertyGrid::DoGetItemAtY( int y ) const { // Outside?