Remove the sectionAutoResize signal.

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>
This commit is contained in:
Stephen Kelly 2012-04-02 16:11:42 +02:00 committed by Qt by Nokia
parent ab3837f86f
commit 7099c333c4
2 changed files with 2 additions and 15 deletions

View File

@ -130,7 +130,7 @@ QDataStream &operator>>(QDataStream &in, QHeaderViewPrivate::SectionSpan &span)
A header will emit sectionMoved() if the user moves a section, A header will emit sectionMoved() if the user moves a section,
sectionResized() if the user resizes a section, and sectionClicked() as sectionResized() if the user resizes a section, and sectionClicked() as
well as sectionHandleDoubleClicked() in response to mouse clicks. A header 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() You can identify a section using the logicalIndex() and logicalIndexAt()
functions, or by its index position, using the visualIndex() and functions, or by its index position, using the visualIndex() and
@ -281,18 +281,6 @@ QDataStream &operator>>(QDataStream &in, QHeaderViewPrivate::SectionSpan &span)
\sa setSortIndicator() \sa setSortIndicator()
*/ */
/*!
\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() \fn void QHeaderView::geometriesChanged()
\since 4.2 \since 4.2
@ -1195,7 +1183,7 @@ bool QHeaderView::highlightSections() const
Sets the constraints on how the header can be resized to those described Sets the constraints on how the header can be resized to those described
by the given \a mode. by the given \a mode.
\sa resizeMode(), length(), sectionResized(), sectionAutoResize() \sa resizeMode(), length(), sectionResized()
*/ */
void QHeaderView::setResizeMode(ResizeMode mode) void QHeaderView::setResizeMode(ResizeMode mode)

View File

@ -191,7 +191,6 @@ Q_SIGNALS:
void sectionDoubleClicked(int logicalIndex); void sectionDoubleClicked(int logicalIndex);
void sectionCountChanged(int oldCount, int newCount); void sectionCountChanged(int oldCount, int newCount);
void sectionHandleDoubleClicked(int logicalIndex); void sectionHandleDoubleClicked(int logicalIndex);
void sectionAutoResize(int logicalIndex, QHeaderView::ResizeMode mode);
void geometriesChanged(); void geometriesChanged();
void sortIndicatorChanged(int logicalIndex, Qt::SortOrder order); void sortIndicatorChanged(int logicalIndex, Qt::SortOrder order);