summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorJonas Kvinge <jonas@jkvinge.net>2021-10-09 18:51:52 +0200
committerJonas Kvinge <jonas@jkvinge.net>2021-10-15 20:07:09 +0200
commit553a1c48fd7a9078c1a33ad0829eaa84f0afb670 (patch)
tree0901e701467bfa3fb885e8cc7289c45c19509f10 /src/widgets/itemviews/qabstractitemview.cpp
parentdedb29cf23959741593b2fa1481f210cd663cafb (diff)
widgets: Fix typos in source code comments
Pick-to: 6.2 Change-Id: I22f71a53b0f7f0698450123343e25548c889c3e2 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview.cpp')
-rw-r--r--src/widgets/itemviews/qabstractitemview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp
index bb4aa3457c..d782eb71ab 100644
--- a/src/widgets/itemviews/qabstractitemview.cpp
+++ b/src/widgets/itemviews/qabstractitemview.cpp
@@ -2523,7 +2523,7 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event)
break;
case Qt::Key_Enter:
case Qt::Key_Return:
- // ### we can't open the editor on enter, becuse
+ // ### we can't open the editor on enter, because
// some widgets will forward the enter event back
// to the viewport, starting an endless loop
if (state() != EditingState || hasFocus()) {
@@ -3354,7 +3354,7 @@ void QAbstractItemView::update(const QModelIndex &index)
Q_D(QAbstractItemView);
if (index.isValid()) {
const QRect rect = visualRect(index);
- //this test is important for peformance reason
+ //this test is important for performance reason
//For example in dataChanged we simply update all the cells without checking
//it can be a major bottleneck to update rects that aren't even part of the viewport
if (d->viewport->rect().intersects(rect))