Commit 6f15352a authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated methods

parent 37d398ce
......@@ -210,7 +210,7 @@ KMagSelWin::KMagSelWin ( QWidget * parent ) :
titleBar = new KMagSelWinCorner (this);
titleBar->setObjectName( QStringLiteral("titlebar" ));
setPaletteColor(titleBar, QPalette::Background, getTitleColor());
setPaletteColor(titleBar, QPalette::Window, getTitleColor());
setPaletteColor(titleBar, QPalette::Foreground, getTextColor());
titleBar->setText(i18n("Selection Window")+QLatin1String( " - " )+i18n("KMagnifier"));
connect (titleBar, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
......@@ -219,28 +219,28 @@ KMagSelWin::KMagSelWin ( QWidget * parent ) :
topLeftCorner = new KMagSelWinCorner (this);
topLeftCorner->setObjectName( QStringLiteral("topleft" ));
topLeftCorner->setCursor (Qt::SizeFDiagCursor);
setPaletteColor(topLeftCorner, QPalette::Background, getTitleBtnColor());
setPaletteColor(topLeftCorner, QPalette::Window, getTitleBtnColor());
connect (topLeftCorner, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
connect (topLeftCorner, &KMagSelWinCorner::resized, this, &KMagSelWin::topLeftResized);
topRightCorner = new KMagSelWinCorner (this);
topRightCorner->setObjectName( QStringLiteral("topright" ));
topRightCorner->setCursor (Qt::SizeBDiagCursor);
setPaletteColor(topRightCorner, QPalette::Background, getTitleBtnColor ());
setPaletteColor(topRightCorner, QPalette::Window, getTitleBtnColor ());
connect (topRightCorner, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
connect (topRightCorner, &KMagSelWinCorner::resized, this, &KMagSelWin::topRightResized);
bottomLeftCorner = new KMagSelWinCorner (this);
bottomLeftCorner->setObjectName( QStringLiteral("bottomleft" ));
bottomLeftCorner->setCursor (Qt::SizeBDiagCursor);
setPaletteColor(bottomLeftCorner, QPalette::Background, getTitleBtnColor());
setPaletteColor(bottomLeftCorner, QPalette::Window, getTitleBtnColor());
connect (bottomLeftCorner, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
connect (bottomLeftCorner, &KMagSelWinCorner::resized, this, &KMagSelWin::bottomLeftResized);
bottomRightCorner = new KMagSelWinCorner (this);
bottomRightCorner->setObjectName( QStringLiteral("bottomright" ));
bottomRightCorner->setCursor (Qt::SizeFDiagCursor);
setPaletteColor(bottomRightCorner, QPalette::Background, getTitleBtnColor ());
setPaletteColor(bottomRightCorner, QPalette::Window, getTitleBtnColor ());
connect (bottomRightCorner, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
connect (bottomRightCorner, &KMagSelWinCorner::resized, this, &KMagSelWin::bottomRightResized);
}
......
......@@ -326,7 +326,7 @@ void KMagZoomView::paintEvent(QPaintEvent *e)
Qt::black);
p.translate(visibleWidth() / 2.0, visibleHeight() / 2.0);
p.setMatrix(m_zoomMatrix, true);
p.setWorldTransform(m_zoomMatrix, true);
const double ratio = 0.5 / m_coloredPixmap.devicePixelRatio();
p.translate(-m_coloredPixmap.width() * ratio, -m_coloredPixmap.height() * ratio);
p.drawPixmap(QPoint(clipx-contentsX(), clipy-contentsY()), m_coloredPixmap);
......
......@@ -217,7 +217,7 @@ class KMagZoomView : public QAbstractScrollArea
QTimer m_mouseViewTimer;
/// Zoom matrix
QMatrix m_zoomMatrix;
QTransform m_zoomMatrix;
/// Saves the mouse position when a button is clicked and b4 the cursor is moved to new position
QPoint m_oldMousePos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment