Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 895438
Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +7 lines)
Line  Link Here
0
-- b/factorwidget.cpp
0
++ a/factorwidget.cpp
Lines 43-49 Link Here
43
    }
43
    }
44
44
45
    QSlider * s = new QSlider(Qt::Horizontal, _parent);
45
    QSlider * s = new QSlider(Qt::Horizontal, _parent);
46
    s->setRange(100, 200);
46
    s->setRange(0, 100);
47
    s->setMaximumWidth(100);
47
    s->setMaximumWidth(100);
48
48
49
    connect(s, &QSlider::valueChanged, m_receiver, &MainWindow::setFactor);
49
    connect(s, &QSlider::valueChanged, m_receiver, &MainWindow::setFactor);
50
-- b/vnc/vncview.cpp
50
++ a/vnc/vncview.cpp
Lines 121-129 Link Here
121
    qCDebug(KRDC) << w << h;
121
    qCDebug(KRDC) << w << h;
122
    if (m_scale) {
122
    if (m_scale) {
123
        const QSize frameSize = m_frame.size() / m_frame.devicePixelRatio();
123
        const QSize frameSize = m_frame.size() / m_frame.devicePixelRatio();
124
        const qreal _newW = (frameSize.width() - w) * m_factor + w;
125
        const qreal _newH = (frameSize.height() - h) * m_factor + h;
124
126
125
        m_verticalFactor = static_cast<qreal>(h) / frameSize.height() * m_factor;
127
        m_verticalFactor = _newH / frameSize.height();
126
        m_horizontalFactor = static_cast<qreal>(w) / frameSize.width() * m_factor;
128
        m_horizontalFactor = _newW / frameSize.width();
127
129
128
#ifndef QTONLY
130
#ifndef QTONLY
129
        if (Settings::keepAspectRatio()) {
131
        if (Settings::keepAspectRatio()) {

Return to bug 895438