Remove the sectionAutoResize signal.
authorStephen Kelly <stephen.kelly@kdab.com>
Mon, 2 Apr 2012 14:11:42 +0000 (16:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 19:10:45 +0000 (21:10 +0200)
Despite being documented, it was never emitted, and I can't find
any use of it in the history either.

Change-Id: If89b401004d14ef068ada6a4099bef9dc47936c9
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp
src/widgets/itemviews/qheaderview.h

index e82cd47..95c5edc 100644 (file)
@@ -130,7 +130,7 @@ QDataStream &operator>>(QDataStream &in, QHeaderViewPrivate::SectionSpan &span)
     A header will emit sectionMoved() if the user moves a section,
     sectionResized() if the user resizes a section, and sectionClicked() as
     well as sectionHandleDoubleClicked() in response to mouse clicks. A header
-    will also emit sectionCountChanged() and sectionAutoResize().
+    will also emit sectionCountChanged().
 
     You can identify a section using the logicalIndex() and logicalIndexAt()
     functions, or by its index position, using the visualIndex() and
@@ -282,18 +282,6 @@ QDataStream &operator>>(QDataStream &in, QHeaderViewPrivate::SectionSpan &span)
 */
 
 /*!
-    \fn void QHeaderView::sectionAutoResize(int logicalIndex,
-    QHeaderView::ResizeMode mode)
-
-    This signal is emitted when a section is automatically resized. The
-    section's logical index is specified by \a logicalIndex, and the resize
-    mode by \a mode.
-
-    \sa setResizeMode(), stretchLastSection()
-*/
-// ### Qt 5: change to sectionAutoResized()
-
-/*!
     \fn void QHeaderView::geometriesChanged()
     \since 4.2
 
@@ -1195,7 +1183,7 @@ bool QHeaderView::highlightSections() const
     Sets the constraints on how the header can be resized to those described
     by the given \a mode.
 
-    \sa resizeMode(), length(), sectionResized(), sectionAutoResize()
+    \sa resizeMode(), length(), sectionResized()
 */
 
 void QHeaderView::setResizeMode(ResizeMode mode)
index bf686e2..0cea318 100644 (file)
@@ -191,7 +191,6 @@ Q_SIGNALS:
     void sectionDoubleClicked(int logicalIndex);
     void sectionCountChanged(int oldCount, int newCount);
     void sectionHandleDoubleClicked(int logicalIndex);
-    void sectionAutoResize(int logicalIndex, QHeaderView::ResizeMode mode);
     void geometriesChanged();
     void sortIndicatorChanged(int logicalIndex, Qt::SortOrder order);