diff options
Diffstat (limited to 'examples/widgets/scribble/mainwindow.cpp')
-rw-r--r-- | examples/widgets/scribble/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets/scribble/mainwindow.cpp b/examples/widgets/scribble/mainwindow.cpp index 00bf9884c9..6db7b39b4c 100644 --- a/examples/widgets/scribble/mainwindow.cpp +++ b/examples/widgets/scribble/mainwindow.cpp @@ -107,10 +107,10 @@ void MainWindow::penWidth() //! [9] //! [10] { bool ok; - int newWidth = QInputDialog::getInteger(this, tr("Scribble"), - tr("Select pen width:"), - scribbleArea->penWidth(), - 1, 50, 1, &ok); + int newWidth = QInputDialog::getInt(this, tr("Scribble"), + tr("Select pen width:"), + scribbleArea->penWidth(), + 1, 50, 1, &ok); if (ok) scribbleArea->setPenWidth(newWidth); } |