Add missing RTTI to some wxQT classes
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <QtGui/QBrush>
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxBrush,wxBrushBase);
|
||||
|
||||
static Qt::BrushStyle ConvertBrushStyle(wxBrushStyle style)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,8 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxColourDialog,wxDialog)
|
||||
|
||||
bool wxColourDialog::Create(wxWindow *parent, wxColourData *data )
|
||||
{
|
||||
m_qtWindow = new wxQtColorDialog( parent, this );
|
||||
|
||||
@@ -43,6 +43,8 @@ static void SetBrushColour( QPainter *qtPainter, QColor col )
|
||||
qtPainter->setBrush( b );
|
||||
}
|
||||
|
||||
wxIMPLEMENT_CLASS(wxQtDCImpl,wxDCImpl);
|
||||
|
||||
wxQtDCImpl::wxQtDCImpl( wxDC *owner )
|
||||
: wxDCImpl( owner )
|
||||
{
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_CLASS(wxWindowDCImpl,wxQtDCImpl);
|
||||
|
||||
wxWindowDCImpl::wxWindowDCImpl( wxDC *owner )
|
||||
: wxQtDCImpl( owner )
|
||||
{
|
||||
@@ -59,6 +61,7 @@ wxWindowDCImpl::~wxWindowDCImpl()
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_CLASS(wxClientDCImpl,wxQtDCImpl);
|
||||
|
||||
wxClientDCImpl::wxClientDCImpl( wxDC *owner )
|
||||
: wxWindowDCImpl( owner )
|
||||
@@ -118,6 +121,8 @@ wxClientDCImpl::~wxClientDCImpl()
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_CLASS(wxPaintDCImpl,wxQtDCImpl);
|
||||
|
||||
wxPaintDCImpl::wxPaintDCImpl( wxDC *owner )
|
||||
: wxWindowDCImpl( owner )
|
||||
{
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
wxIMPLEMENT_CLASS(wxMemoryDCImpl,wxQtDCImpl);
|
||||
|
||||
wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner )
|
||||
: wxQtDCImpl( owner )
|
||||
{
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/qt/dcprint.h"
|
||||
|
||||
wxIMPLEMENT_CLASS(wxPrinterDCImpl,wxDCImpl)
|
||||
|
||||
wxPrinterDCImpl::wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData & )
|
||||
: wxDCImpl( owner )
|
||||
{
|
||||
|
||||
@@ -88,6 +88,8 @@ void wxMDIParentFrame::ActivatePrevious()
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame,wxMDIChildFrameBase)
|
||||
|
||||
wxMDIChildFrame::wxMDIChildFrame()
|
||||
{
|
||||
}
|
||||
@@ -129,6 +131,8 @@ void wxMDIChildFrame::Activate()
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow,wxMDIClientWindowBase)
|
||||
|
||||
wxMDIClientWindow::wxMDIClientWindow()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -111,6 +111,8 @@ wxMessageDialog::wxMessageDialog( wxWindow *parent, const wxString& message,
|
||||
PostCreation();
|
||||
}
|
||||
|
||||
wxIMPLEMENT_CLASS(wxMessageDialog,wxMessageDialogBase);
|
||||
|
||||
int wxMessageDialog::ShowModal()
|
||||
{
|
||||
wxCHECK_MSG( m_qtWindow, -1, "Invalid dialog" );
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
#include "wx/palette.h"
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxPalette,wxPaletteBase)
|
||||
|
||||
wxPalette::wxPalette()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include <QtGui/QPen>
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxPen,wxPenBase);
|
||||
|
||||
static Qt::PenStyle ConvertPenStyle(wxPenStyle style)
|
||||
{
|
||||
switch(style)
|
||||
|
||||
@@ -53,6 +53,8 @@ class wxRegionRefData: public wxGDIRefData
|
||||
|
||||
#define M_REGIONDATA ((wxRegionRefData *)m_refData)->m_qtRegion
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxRegion,wxRegionBase);
|
||||
|
||||
wxRegion::wxRegion()
|
||||
{
|
||||
m_refData = new wxRegionRefData();
|
||||
@@ -255,6 +257,8 @@ const QRegion &wxRegion::GetHandle() const
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
|
||||
|
||||
wxRegionIterator::wxRegionIterator()
|
||||
{
|
||||
m_qtRects = NULL;
|
||||
|
||||
@@ -103,6 +103,8 @@ QWidget *wxBitmapToggleButton::GetHandle() const
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxToggleButtonBase);
|
||||
|
||||
wxToggleButton::wxToggleButton()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user