summaryrefslogtreecommitdiffstats
path: root/examples/tools/plugandpaint/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tools/plugandpaint/mainwindow.cpp')
-rw-r--r--examples/tools/plugandpaint/mainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tools/plugandpaint/mainwindow.cpp b/examples/tools/plugandpaint/mainwindow.cpp
index 472e10120d..c33c5be518 100644
--- a/examples/tools/plugandpaint/mainwindow.cpp
+++ b/examples/tools/plugandpaint/mainwindow.cpp
@@ -116,10 +116,10 @@ void MainWindow::brushColor()
void MainWindow::brushWidth()
{
bool ok;
- const int newWidth = QInputDialog::getInteger(this, tr("Plug & Paint"),
- tr("Select brush width:"),
- paintArea->brushWidth(),
- 1, 50, 1, &ok);
+ const int newWidth = QInputDialog::getInt(this, tr("Plug & Paint"),
+ tr("Select brush width:"),
+ paintArea->brushWidth(),
+ 1, 50, 1, &ok);
if (ok)
paintArea->setBrushWidth(newWidth);
}