From 59339941e0e6e2b8648c2e128284de188a65714b Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Wed, 11 Jul 2012 14:44:38 +0200 Subject: Fix some spelling errors Change-Id: I19d3b2e9a5180b13deb828b55195404ef20be295 Reviewed-by: Daniel Teske Reviewed-by: Giuseppe D'Angelo --- src/widgets/itemviews/qheaderview.cpp | 4 ++-- src/widgets/styles/qstylesheetstyle.cpp | 2 +- src/widgets/widgets/qdockwidget.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 0cd80f2e0a..8ba5d74946 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -3527,7 +3527,7 @@ bool QHeaderViewPrivate::read(QDataStream &in) in >> hiddenSectionSize; in >> length; - int unusedSectionCount; // For compability + int unusedSectionCount; // For compatibility in >> unusedSectionCount; in >> movableSections; in >> clickableSections; @@ -3548,7 +3548,7 @@ bool QHeaderViewPrivate::read(QDataStream &in) in >> sectionItems; // In Qt4 we had a vector of spans where one span could hold information on more sections. // Now we have an itemvector where one items contains information about one section - // For backward compability with Qt4 we do the following + // For backward compatibility with Qt4 we do the following QVector newSectionItems; for (int u = 0; u < sectionItems.count(); ++u) { int count = sectionItems.at(u).tmpDataStreamSectionCount; diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index a82d2a57b8..78be5af604 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -2492,7 +2492,7 @@ void QStyleSheetStyle::setProperties(QWidget *w) QVector finals; // indices in reverse order of each property's final occurrence { - // scan decls for final occurence of each "qproperty" + // scan decls for final occurrence of each "qproperty" QSet propertySet; for (int i = decls.count() - 1; i >= 0; --i) { const QString property = decls.at(i).d->property; diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index c35b761a20..4a1ce17cff 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -306,7 +306,7 @@ QSize QDockWidgetLayout::sizeFromContent(const QSize &content, bool floating) co int left, top, right, bottom; w->getContentsMargins(&left, &top, &right, &bottom); - //we need to substract the contents margin (it will be added by the caller) + //we need to subtract the contents margin (it will be added by the caller) QSize min = w->minimumSize() - QSize(left + right, top + bottom); QSize max = w->maximumSize() - QSize(left + right, top + bottom); -- cgit v1.2.3