Replace accessor with an older version
This commit is contained in:
@@ -1001,8 +1001,8 @@ void wxWindowQt::SetAcceleratorTable( const wxAcceleratorTable& accel )
|
|||||||
for ( wxVector<QShortcut*>::const_iterator it = m_qtShortcuts.begin();
|
for ( wxVector<QShortcut*>::const_iterator it = m_qtShortcuts.begin();
|
||||||
it != m_qtShortcuts.end(); ++it )
|
it != m_qtShortcuts.end(); ++it )
|
||||||
{
|
{
|
||||||
QObject::connect( *it, &QShortcut::activated, m_qtShortcutHandler.get(), &wxQtShortcutHandler::activated );
|
QObject::connect( *it, &QShortcut::activated, m_qtShortcutHandler.data(), &wxQtShortcutHandler::activated );
|
||||||
QObject::connect( *it, &QShortcut::activatedAmbiguously, m_qtShortcutHandler.get(), &wxQtShortcutHandler::activated );
|
QObject::connect( *it, &QShortcut::activatedAmbiguously, m_qtShortcutHandler.data(), &wxQtShortcutHandler::activated );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // wxUSE_ACCEL
|
#endif // wxUSE_ACCEL
|
||||||
@@ -1168,7 +1168,7 @@ bool wxWindowQt::QtHandlePaintEvent ( QWidget *handler, QPaintEvent *event )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Data from wxClientDC, paint it
|
// Data from wxClientDC, paint it
|
||||||
m_qtPicture->play( m_qtPainter.get() );
|
m_qtPicture->play( m_qtPainter.data() );
|
||||||
// Reset picture
|
// Reset picture
|
||||||
m_qtPicture->setData( NULL, 0 );
|
m_qtPicture->setData( NULL, 0 );
|
||||||
handled = true;
|
handled = true;
|
||||||
@@ -1549,5 +1549,5 @@ void wxWindowQt::QtSetPicture( QPicture* pict )
|
|||||||
|
|
||||||
QPainter *wxWindowQt::QtGetPainter()
|
QPainter *wxWindowQt::QtGetPainter()
|
||||||
{
|
{
|
||||||
return m_qtPainter.get();
|
return m_qtPainter.data();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user