summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-03-07 23:42:33 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-25 08:01:55 +0200
commitc8028844eecac2cc469316ce341791b5e9cddb2a (patch)
treec35d5276fb7058f9abc8be2167c19611030f78b2 /src/widgets
parent15fcb229cb4933d38e9b3828a9a524806f05d5f1 (diff)
Fix some spelling errors.
Change-Id: I1f730c843e77d68ab17715175af53da577cb3695 Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/itemviews/qheaderview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index 0a7f9de0b3..dc272b5ee0 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -3030,7 +3030,7 @@ int QHeaderViewPrivate::lastVisibleVisualIndex() const
/*!
\internal
Go through and resize all of the sections applying stretchLastSection,
- manualy stretches, sizes, and useGlobalMode.
+ manual stretches, sizes, and useGlobalMode.
The different resize modes are:
Interactive - the user decides the size
@@ -3063,8 +3063,8 @@ void QHeaderViewPrivate::resizeSections(QHeaderView::ResizeMode globalMode, bool
if (stretchLastSection && !useGlobalMode)
stretchSection = lastVisibleVisualIndex();
- // count up the number of strected sections and how much space left for them
- int lengthToStrech = (orientation == Qt::Horizontal ? viewport->width() : viewport->height());
+ // count up the number of stretched sections and how much space left for them
+ int lengthToStretch = (orientation == Qt::Horizontal ? viewport->width() : viewport->height());
int numberOfStretchedSections = 0;
QList<int> section_sizes;
for (int i = 0; i < sectionCount(); ++i) {
@@ -3083,7 +3083,7 @@ void QHeaderViewPrivate::resizeSections(QHeaderView::ResizeMode globalMode, bool
continue;
}
- // because it isn't stretch, determine its width and remove that from lengthToStrech
+ // because it isn't stretch, determine its width and remove that from lengthToStretch
int sectionSize = 0;
if (resizeMode == QHeaderView::Interactive || resizeMode == QHeaderView::Fixed) {
sectionSize = headerSectionSize(i);
@@ -3093,16 +3093,16 @@ void QHeaderViewPrivate::resizeSections(QHeaderView::ResizeMode globalMode, bool
q->sectionSizeHint(logicalIndex));
}
section_sizes.append(sectionSize);
- lengthToStrech -= sectionSize;
+ lengthToStretch -= sectionSize;
}
// calculate the new length for all of the stretched sections
int stretchSectionLength = -1;
int pixelReminder = 0;
- if (numberOfStretchedSections > 0 && lengthToStrech > 0) { // we have room to stretch in
- int hintLengthForEveryStretchedSection = lengthToStrech / numberOfStretchedSections;
+ if (numberOfStretchedSections > 0 && lengthToStretch > 0) { // we have room to stretch in
+ int hintLengthForEveryStretchedSection = lengthToStretch / numberOfStretchedSections;
stretchSectionLength = qMax(hintLengthForEveryStretchedSection, q->minimumSectionSize());
- pixelReminder = lengthToStrech % numberOfStretchedSections;
+ pixelReminder = lengthToStretch % numberOfStretchedSections;
}
// ### The code below would be nicer if it was cleaned up a bit (since spans has been replaced with items)