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

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



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->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