summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-05-09 18:52:37 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-05-09 18:52:37 (GMT)
commit586258bfb520452860d8ff94c2db132d6ffd9e42 (patch)
tree31482ebdb0810981f7e39ea881c9a32497638a2e /examples
parenta97b9620a584c9b1a2e006873183526b3d7e001e (diff)
downloadQt-586258bfb520452860d8ff94c2db132d6ffd9e42.zip
Qt-586258bfb520452860d8ff94c2db132d6ffd9e42.tar.gz
Qt-586258bfb520452860d8ff94c2db132d6ffd9e42.tar.bz2
Doc: Fixed incorrect button handling.
Task-number: QTBUG-18954
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/diagramscene/mainwindow.cpp4
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"))