From 575f6f5325204347623d4aefbaeee9f71d14ac89 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 15 Aug 2012 14:00:08 +0200 Subject: [PATCH] Remove outdated docs. Change-Id: I6eaffdad3b800b7d90478cb7c4044ec27e659ec9 Reviewed-by: J-P Nurmi --- src/widgets/kernel/qboxlayout.cpp | 36 ----------- src/widgets/kernel/qgesture.cpp | 2 +- src/widgets/kernel/qgridlayout.cpp | 100 ----------------------------- src/widgets/kernel/qlayout.cpp | 12 ---- 4 files changed, 1 insertion(+), 149 deletions(-) diff --git a/src/widgets/kernel/qboxlayout.cpp b/src/widgets/kernel/qboxlayout.cpp index 66e887a078..5e88e8f324 100644 --- a/src/widgets/kernel/qboxlayout.cpp +++ b/src/widgets/kernel/qboxlayout.cpp @@ -1086,12 +1086,6 @@ void QBoxLayout::addStrut(int size) invalidate(); } -/*! - \fn int QBoxLayout::findWidget(QWidget *widget) - - Use indexOf(\a widget) instead. -*/ - /*! Sets the stretch factor for \a widget to \a stretch and returns true if \a widget is found in this layout (not including child @@ -1350,34 +1344,4 @@ QVBoxLayout::~QVBoxLayout() { } -/*! - \fn QWidget *QLayout::mainWidget() const - - Use parentWidget() instead. -*/ - -/*! - \fn void QLayout::remove(QWidget *widget) - - Use removeWidget(\a widget) instead. -*/ - -/*! - \fn void QLayout::add(QWidget *widget) - - Use addWidget(\a widget) instead. -*/ - -/*! - \fn QLayoutIterator QLayout::iterator() - - Use a QLayoutIterator() constructor instead. -*/ - -/*! - \fn int QLayout::defaultBorder() const - - Use spacing() instead. -*/ - QT_END_NAMESPACE diff --git a/src/widgets/kernel/qgesture.cpp b/src/widgets/kernel/qgesture.cpp index 4f899e5644..f0a39037ae 100644 --- a/src/widgets/kernel/qgesture.cpp +++ b/src/widgets/kernel/qgesture.cpp @@ -1045,7 +1045,7 @@ QWidget *QGestureEvent::widget() const QGraphicsObject to translate a point in screen coordinates to scene-local coordinates. - \sa QPointF::isNull(). + \sa QPointF::isNull() */ QPointF QGestureEvent::mapToGraphicsScene(const QPointF &gesturePoint) const { diff --git a/src/widgets/kernel/qgridlayout.cpp b/src/widgets/kernel/qgridlayout.cpp index c81158e0cd..59c0db0236 100644 --- a/src/widgets/kernel/qgridlayout.cpp +++ b/src/widgets/kernel/qgridlayout.cpp @@ -1682,104 +1682,4 @@ void QGridLayout::invalidate() QLayout::invalidate(); } -/*! - \fn void QGridLayout::addRowSpacing(int row, int minsize) - - Use addItem(new QSpacerItem(0, minsize), row, 0) instead. -*/ - -/*! - \fn void QGridLayout::addColSpacing(int col, int minsize) - - Use addItem(new QSpacerItem(minsize, 0), 0, col) instead. -*/ - -/*! - \fn void QGridLayout::addMultiCellWidget(QWidget *widget, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align = 0) - - Use an addWidget() overload that allows you to specify row and - column spans instead. -*/ - -/*! - \fn void QGridLayout::addMultiCell(QLayoutItem *l, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align = 0) - - Use an addItem() overload that allows you to specify row and - column spans instead. -*/ - -/*! - \fn void QGridLayout::addMultiCellLayout(QLayout *layout, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align = 0) - - Use an addLayout() overload that allows you to specify row and - column spans instead. -*/ - -/*! - \fn int QGridLayout::numRows() const - - Use rowCount() instead. -*/ - -/*! - \fn int QGridLayout::numCols() const - - Use columnCount() instead. -*/ - -/*! - \fn void QGridLayout::setColStretch(int col, int stretch) - - Use setColumnStretch() instead. -*/ - -/*! - \fn int QGridLayout::colStretch(int col) const - - Use columnStretch() instead. -*/ - -/*! - \fn void QGridLayout::setColSpacing(int col, int minSize) - - Use setColumnMinimumWidth() instead. -*/ - -/*! - \fn int QGridLayout::colSpacing(int col) const - - Use columnMinimumWidth() instead. -*/ - -/*! - \fn void QGridLayout::setRowSpacing(int row, int minSize) - - Use setRowMinimumHeight(\a row, \a minSize) instead. -*/ - -/*! - \fn int QGridLayout::rowSpacing(int row) const - - Use rowMinimumHeight(\a row) instead. -*/ - -/*! - \fn QRect QGridLayout::cellGeometry(int row, int column) const - - Use cellRect(\a row, \a column) instead. -*/ - -/*! - \fn void QGridLayout::setOrigin(Qt::Corner corner) - - Use setOriginCorner(\a corner) instead. -*/ - -/*! - \fn Qt::Corner QGridLayout::origin() const - - Use originCorner() instead. -*/ - - QT_END_NAMESPACE diff --git a/src/widgets/kernel/qlayout.cpp b/src/widgets/kernel/qlayout.cpp index d6a804b8d8..189f8f3451 100644 --- a/src/widgets/kernel/qlayout.cpp +++ b/src/widgets/kernel/qlayout.cpp @@ -1393,18 +1393,6 @@ QSize QLayout::closestAcceptableSize(const QWidget *widget, const QSize &size) return result; } -/*! - \fn void QLayout::setResizeMode(SizeConstraint constraint) - - Use setSizeConstraint(\a constraint) instead. -*/ - -/*! - \fn QLayout::SizeConstraint QLayout::resizeMode() const - - Use sizeConstraint() instead. -*/ - void QSizePolicy::setControlType(ControlType type) { /*