diff options
author | David Boddie <david.boddie@nokia.com> | 2011-05-09 18:52:37 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-09 18:52:37 (GMT) |
commit | 586258bfb520452860d8ff94c2db132d6ffd9e42 (patch) | |
tree | 31482ebdb0810981f7e39ea881c9a32497638a2e | |
parent | a97b9620a584c9b1a2e006873183526b3d7e001e (diff) | |
download | Qt-586258bfb520452860d8ff94c2db132d6ffd9e42.zip Qt-586258bfb520452860d8ff94c2db132d6ffd9e42.tar.gz Qt-586258bfb520452860d8ff94c2db132d6ffd9e42.tar.bz2 |
Doc: Fixed incorrect button handling.
Task-number: QTBUG-18954
-rw-r--r-- | examples/graphicsview/diagramscene/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/graphicsview/diagramscene/mainwindow.cpp b/examples/graphicsview/diagramscene/mainwindow.cpp index 87eb33e..b0aee87 100644 --- a/examples/graphicsview/diagramscene/mainwindow.cpp +++ b/examples/graphicsview/diagramscene/mainwindow.cpp @@ -85,8 +85,8 @@ void MainWindow::backgroundButtonGroupClicked(QAbstractButton *button) { QList<QAbstractButton *> buttons = backgroundButtonGroup->buttons(); foreach (QAbstractButton *myButton, buttons) { - if (myButton != button) - button->setChecked(false); + if (myButton != button) + myButton->setChecked(false); } QString text = button->text(); if (text == tr("Blue Grid")) |