Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void MainWindow::sceneScaleChanged ( const QString scale ) [private, slot]

[10]

[11]

Definition at line 211 of file mainwindow.cpp.

References QMatrix::dx(), QMatrix::dy(), and QString::left().

Referenced by createToolbars().

{
    double newScale = scale.left(scale.indexOf(tr("%"))).toDouble() / 100.0;
    QMatrix oldMatrix = view->matrix();
    view->resetMatrix();
    view->translate(oldMatrix.dx(), oldMatrix.dy());
    view->scale(newScale, newScale);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index