From c8028844eecac2cc469316ce341791b5e9cddb2a Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 7 Mar 2012 23:42:33 +0100 Subject: Fix some spelling errors. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1f730c843e77d68ab17715175af53da577cb3695 Reviewed-by: Thorbjørn Lund Martsum Reviewed-by: Stephen Kelly --- src/widgets/itemviews/qheaderview.cpp | 16 ++++++++-------- 1 file 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 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) -- cgit v1.2.3