Fix several build errors in WXQT
Move declaration of wxOwnerDrawnBase::ms_defaultMargin to correct file. Do not include headers when wxUSE_UIACTIONSIMULATOR is disabled. Add guards for wxUSE_DRAG_AND_DROP. Use a different wxFont constructor in printing sample, which is also available in WXQT.
This commit is contained in:
parent
4e23b3e7f4
commit
7f0d7ef520
@ -133,7 +133,9 @@ public:
|
||||
|
||||
QWidget *GetHandle() const wxOVERRIDE;
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
#if wxUSE_ACCEL
|
||||
// accelerators
|
||||
|
@ -106,7 +106,7 @@ bool MyApp::OnInit(void)
|
||||
m_bitmap = image;
|
||||
#endif
|
||||
m_angle = 30;
|
||||
m_testFont.Create(10, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
||||
m_testFont = wxFontInfo(10).Family(wxFONTFAMILY_SWISS);
|
||||
|
||||
|
||||
// Create the main frame window
|
||||
|
@ -36,6 +36,12 @@
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants for base class
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
int wxOwnerDrawnBase::ms_defaultMargin = 3;
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
@ -23,12 +23,6 @@
|
||||
#include "wx/msw/private/dc.h"
|
||||
#include "wx/msw/wrapcctl.h" // for HIMAGELIST
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants for base class
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
int wxOwnerDrawnBase::ms_defaultMargin = 3;
|
||||
|
||||
// ============================================================================
|
||||
// implementation of wxOwnerDrawn class
|
||||
// ============================================================================
|
||||
|
@ -8,6 +8,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
|
||||
#include "wx/dnd.h"
|
||||
|
||||
wxDropTarget::wxDropTarget(wxDataObject *WXUNUSED(dataObject))
|
||||
@ -58,3 +60,4 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags))
|
||||
return wxDragResult();
|
||||
}
|
||||
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
|
@ -12,6 +12,8 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_UIACTIONSIMULATOR
|
||||
|
||||
#include "wx/uiaction.h"
|
||||
#include "wx/private/uiaction.h"
|
||||
|
||||
@ -24,8 +26,6 @@
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
|
||||
#if wxUSE_UIACTIONSIMULATOR
|
||||
|
||||
using namespace Qt;
|
||||
using namespace QTest;
|
||||
|
||||
|
@ -650,10 +650,12 @@ void wxWindowQt::ScrollWindow( int dx, int dy, const wxRect *rect )
|
||||
}
|
||||
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
void wxWindowQt::SetDropTarget( wxDropTarget * WXUNUSED( dropTarget ) )
|
||||
{
|
||||
wxMISSING_IMPLEMENTATION( __FUNCTION__ );
|
||||
}
|
||||
#endif
|
||||
|
||||
void wxWindowQt::SetWindowStyleFlag( long style )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user