Fix wxQt build errors when using gcc 4.4

Closes #17733.
This commit is contained in:
Graham Dawes 2016-11-29 15:48:07 +00:00 committed by Vadim Zeitlin
parent 5551932c25
commit d639e4ffce
6 changed files with 7 additions and 6 deletions

View File

@ -76,7 +76,7 @@ public:
virtual int GetBase() const wxOVERRIDE { return m_base; }
virtual bool SetBase(int base) wxOVERRIDE;
virtual void SetValue(const wxString & val);
virtual void SetValue(int val) { wxSpinCtrlQt::SetValue(val); }
virtual void SetValue(int val) { wxSpinCtrlQt<int,QSpinBox>::SetValue(val); }
private:
// Common part of all ctors.
@ -118,7 +118,7 @@ public:
virtual int GetBase() const wxOVERRIDE { return 10; }
virtual bool SetBase(int WXUNUSED(base)) wxOVERRIDE { return false; }
virtual void SetValue(const wxString & val);
virtual void SetValue(double val) { wxSpinCtrlQt::SetValue(val); }
virtual void SetValue(double val) { wxSpinCtrlQt<double,QDoubleSpinBox>::SetValue(val); }
private:
wxDECLARE_DYNAMIC_CLASS( wxSpinCtrlDouble );

View File

@ -25,6 +25,7 @@
#define cairo_public
#include <cairo.h>
#include <float.h>
bool wxCairoInit();

View File

@ -15,7 +15,7 @@ class wxQtColorDialog : public wxQtEventSignalHandler< QColorDialog, wxDialog >
{
public:
wxQtColorDialog( wxWindow *parent, wxDialog *handler)
: wxQtEventSignalHandler(parent, handler)
: wxQtEventSignalHandler<QColorDialog,wxDialog>(parent, handler)
{ }
};

View File

@ -23,7 +23,7 @@ public:
wxQtFileDialog( wxWindow *parent, wxDialog *handler,
const wxString& message, const wxString& defaultDir,
const wxString& defaultFile, const wxString& wildCard, long style )
: wxQtEventSignalHandler(parent, handler)
: wxQtEventSignalHandler<QFileDialog,wxDialog>(parent, handler)
{
setLabelText(QFileDialog::LookIn, wxQtConvertString(message));
setDirectory(wxQtConvertString(defaultDir));

View File

@ -15,7 +15,7 @@ class wxQtFontDialog : public wxQtEventSignalHandler< QFontDialog, wxFontDialog
{
public:
wxQtFontDialog( wxWindow *parent, wxFontDialog *handler)
: wxQtEventSignalHandler(parent, handler)
: wxQtEventSignalHandler<QFontDialog,wxFontDialog>(parent, handler)
{
connect(this, &QFontDialog::currentFontChanged, this, &wxQtFontDialog::updateFont);
}

View File

@ -16,7 +16,7 @@ class wxQtGLWidget : public wxQtEventSignalHandler< QGLWidget, wxGLCanvas >
{
public:
wxQtGLWidget(wxWindow *parent, wxGLCanvas *handler, QGLFormat format)
: wxQtEventSignalHandler(parent, handler)
: wxQtEventSignalHandler<QGLWidget,wxGLCanvas>(parent, handler)
{
setFormat(format);
setAutoBufferSwap( false );