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

void MainWindow::penWidth (  )  [private, slot]

[8]

[9] [9] //! [10]

Definition at line 109 of file mainwindow.cpp.

References QInputDialog::getInteger(), ScribbleArea::penWidth(), and ScribbleArea::setPenWidth().

{
    bool ok;
    int newWidth = QInputDialog::getInteger(this, tr("Scribble"),
                                            tr("Select pen width:"),
                                            scribbleArea->penWidth(),
                                            1, 50, 1, &ok);
    if (ok)
        scribbleArea->setPenWidth(newWidth);
}


Generated by  Doxygen 1.6.0   Back to index