Skip to content

Commit

Permalink
No lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 13, 2021
1 parent da301af commit 7ddb06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -219,17 +219,11 @@ QgsMapCanvas::QgsMapCanvas( QWidget *parent )
connect( window()->windowHandle(), &QWindow::screenChanged, this, [ = ]( QScreen * )
{
disconnect( mScreenDpiChangedConnection );
mScreenDpiChangedConnection = connect( window()->windowHandle()->screen(), &QScreen::physicalDotsPerInchChanged, this, [ = ]( qreal )
{
updateDevicePixelFromScreen();
} );
mScreenDpiChangedConnection = connect( window()->windowHandle()->screen(), &QScreen::physicalDotsPerInchChanged, this, &QgsMapCanvas::updateDevicePixelFromScreen );
updateDevicePixelFromScreen();
} );

mScreenDpiChangedConnection = connect( window()->windowHandle()->screen(), &QScreen::physicalDotsPerInchChanged, this, [ = ]( qreal )
{
updateDevicePixelFromScreen();
} );
mScreenDpiChangedConnection = connect( window()->windowHandle()->screen(), &QScreen::physicalDotsPerInchChanged, this, &QgsMapCanvas::updateDevicePixelFromScreen );
}

connect( &mMapUpdateTimer, &QTimer::timeout, this, &QgsMapCanvas::mapUpdateTimeout );
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsmapcanvas.h
Expand Up @@ -981,6 +981,8 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView, public QgsExpressionContex
//! Renames the active map theme called \a theme to \a newTheme
void mapThemeRenamed( const QString &theme, const QString &newTheme );

void updateDevicePixelFromScreen();

signals:

/**
Expand Down Expand Up @@ -1430,8 +1432,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView, public QgsExpressionContex

void showContextMenu( QgsMapMouseEvent *event );

void updateDevicePixelFromScreen();

friend class TestQgsMapCanvas;

}; // class QgsMapCanvas
Expand Down

0 comments on commit 7ddb06e

Please sign in to comment.