diff options
author | Christian Ehrlicher <[email protected]> | 2024-08-03 17:04:48 +0200 |
---|---|---|
committer | Christian Ehrlicher <[email protected]> | 2024-08-10 11:13:02 +0200 |
commit | ab2e68181c411cc40ca926aa7b7b934a7e80f59e (patch) | |
tree | 6f30ccd3c92467655160043ee4584831d60af6cd | |
parent | 74306c59a5e902ba0b23d1bbad13858bd3b6fd0f (diff) |
Widgets/doc: remove all \since 4.x comments in widgets/itemviews
Remove all \since 4.x comments in widgets/itemviews- this is no longer
of interest.
Pick-to: 6.8
Change-Id: Id713a7a14994ac5d71105d55b65a84cfff5d981c
Reviewed-by: Axel Spoerl <[email protected]>
Reviewed-by: Inkamari Harjula <[email protected]>
Reviewed-by: Venugopal Shivashankar <[email protected]>
-rw-r--r-- | src/widgets/itemviews/qabstractitemdelegate.cpp | 2 | ||||
-rw-r--r-- | src/widgets/itemviews/qabstractitemview.cpp | 32 | ||||
-rw-r--r-- | src/widgets/itemviews/qcolumnview.cpp | 2 | ||||
-rw-r--r-- | src/widgets/itemviews/qdatawidgetmapper.cpp | 4 | ||||
-rw-r--r-- | src/widgets/itemviews/qheaderview.cpp | 19 | ||||
-rw-r--r-- | src/widgets/itemviews/qitemdelegate.cpp | 9 | ||||
-rw-r--r-- | src/widgets/itemviews/qitemeditorfactory.cpp | 4 | ||||
-rw-r--r-- | src/widgets/itemviews/qlistview.cpp | 8 | ||||
-rw-r--r-- | src/widgets/itemviews/qlistwidget.cpp | 22 | ||||
-rw-r--r-- | src/widgets/itemviews/qstyleditemdelegate.cpp | 6 | ||||
-rw-r--r-- | src/widgets/itemviews/qtableview.cpp | 16 | ||||
-rw-r--r-- | src/widgets/itemviews/qtablewidget.cpp | 36 | ||||
-rw-r--r-- | src/widgets/itemviews/qtreeview.cpp | 23 | ||||
-rw-r--r-- | src/widgets/itemviews/qtreewidget.cpp | 50 |
14 files changed, 5 insertions, 228 deletions
diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index 23e8ef0901f..975a912f937 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -144,7 +144,6 @@ QT_BEGIN_NAMESPACE /*! \fn void QAbstractItemDelegate::sizeHintChanged(const QModelIndex &index) - \since 4.4 This signal must be emitted when the sizeHint() of \a index changed. @@ -312,7 +311,6 @@ bool QAbstractItemDelegate::editorEvent(QEvent *, } /*! - \since 4.3 Whenever a help event occurs, this function is called with the \a event \a view \a option and the \a index that corresponds to the item where the event occurs. diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp index 85e478a71e2..f0af233d882 100644 --- a/src/widgets/itemviews/qabstractitemview.cpp +++ b/src/widgets/itemviews/qabstractitemview.cpp @@ -483,7 +483,6 @@ void QAbstractItemViewPrivate::disconnectAll() */ /*! - \since 4.2 \enum QAbstractItemView::ScrollMode Describes how the scrollbar should behave. When setting the scroll mode @@ -912,8 +911,6 @@ QVariant QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery query) const } /*! - \since 4.2 - Sets the given item \a delegate used by this view and model for the given \a row. All items on \a row will be drawn and managed by \a delegate instead of using the default delegate (i.e., itemDelegate()). @@ -950,8 +947,6 @@ void QAbstractItemView::setItemDelegateForRow(int row, QAbstractItemDelegate *de } /*! - \since 4.2 - Returns the item delegate used by this view and model for the given \a row, or \nullptr if no delegate has been assigned. You can call itemDelegate() to get a pointer to the current delegate for a given index. @@ -965,8 +960,6 @@ QAbstractItemDelegate *QAbstractItemView::itemDelegateForRow(int row) const } /*! - \since 4.2 - Sets the given item \a delegate used by this view and model for the given \a column. All items on \a column will be drawn and managed by \a delegate instead of using the default delegate (i.e., itemDelegate()). @@ -1002,8 +995,6 @@ void QAbstractItemView::setItemDelegateForColumn(int column, QAbstractItemDelega } /*! - \since 4.2 - Returns the item delegate used by this view and model for the given \a column. You can call itemDelegate() to get a pointer to the current delegate for a given index. @@ -1287,7 +1278,6 @@ QAbstractItemView::EditTriggers QAbstractItemView::editTriggers() const } /*! - \since 4.2 \property QAbstractItemView::verticalScrollMode \brief how the view scrolls its contents in the vertical direction @@ -1326,7 +1316,6 @@ void QAbstractItemView::resetVerticalScrollMode() } /*! - \since 4.2 \property QAbstractItemView::horizontalScrollMode \brief how the view scrolls its contents in the horizontal direction @@ -1364,7 +1353,6 @@ void QAbstractItemView::resetHorizontalScrollMode() #if QT_CONFIG(draganddrop) /*! - \since 4.2 \property QAbstractItemView::dragDropOverwriteMode \brief the view's drag and drop behavior @@ -1424,7 +1412,6 @@ bool QAbstractItemView::hasAutoScroll() const } /*! - \since 4.4 \property QAbstractItemView::autoScrollMargin \brief the size of the area when auto scrolling is triggered @@ -1509,7 +1496,6 @@ bool QAbstractItemView::dragEnabled() const } /*! - \since 4.2 \enum QAbstractItemView::DragDropMode Describes the various drag and drop events the view can act upon. @@ -1532,7 +1518,6 @@ bool QAbstractItemView::dragEnabled() const \property QAbstractItemView::dragDropMode \brief the drag and drop event the view will act upon - \since 4.2 \sa showDropIndicator, dragDropOverwriteMode */ void QAbstractItemView::setDragDropMode(DragDropMode behavior) @@ -1573,7 +1558,6 @@ QAbstractItemView::DragDropMode QAbstractItemView::dragDropMode() const If the property is not set, the drop action is CopyAction when the supported actions support CopyAction. - \since 4.6 \sa showDropIndicator, dragDropOverwriteMode */ void QAbstractItemView::setDefaultDropAction(Qt::DropAction dropAction) @@ -2701,8 +2685,6 @@ void QAbstractItemView::inputMethodEvent(QInputMethodEvent *event) /*! - \since 4.1 - Returns the position of the drop indicator in relation to the closest item. */ QAbstractItemView::DropIndicatorPosition QAbstractItemView::dropIndicatorPosition() const @@ -2867,8 +2849,6 @@ void QAbstractItemView::updateEditorGeometries() } /*! - \since 4.4 - Updates the geometry of the child widgets of the view. */ void QAbstractItemView::updateGeometries() @@ -3275,8 +3255,6 @@ bool QAbstractItemView::isPersistentEditorOpen(const QModelIndex &index) const } /*! - \since 4.1 - Sets the given \a widget on the item at the given \a index, passing the ownership of the widget to the viewport. @@ -3328,8 +3306,6 @@ void QAbstractItemView::setIndexWidget(const QModelIndex &index, QWidget *widget } /*! - \since 4.1 - Returns the widget for the item at the given \a index. */ QWidget* QAbstractItemView::indexWidget(const QModelIndex &index) const @@ -3343,8 +3319,6 @@ QWidget* QAbstractItemView::indexWidget(const QModelIndex &index) const } /*! - \since 4.1 - Scrolls the view to the top. \sa scrollTo(), scrollToBottom() @@ -3355,8 +3329,6 @@ void QAbstractItemView::scrollToTop() } /*! - \since 4.1 - Scrolls the view to the bottom. \sa scrollTo(), scrollToTop() @@ -3372,8 +3344,6 @@ void QAbstractItemView::scrollToBottom() } /*! - \since 4.3 - Updates the area occupied by the given \a index. */ @@ -3965,8 +3935,6 @@ void QAbstractItemView::executeDelayedItemsLayout() } /*! - \since 4.1 - Marks the given \a region as dirty and schedules it to be updated. You only need to call this function if you are implementing your own view subclass. diff --git a/src/widgets/itemviews/qcolumnview.cpp b/src/widgets/itemviews/qcolumnview.cpp index 04bc8f5f88f..7dd724a6ed3 100644 --- a/src/widgets/itemviews/qcolumnview.cpp +++ b/src/widgets/itemviews/qcolumnview.cpp @@ -18,7 +18,6 @@ QT_BEGIN_NAMESPACE /*! - \since 4.3 \class QColumnView \brief The QColumnView class provides a model/view implementation of a column view. \ingroup model-view @@ -757,7 +756,6 @@ QAbstractItemView *QColumnView::createColumn(const QModelIndex &index) alternatingRowColors(). This can be useful when reimplementing createColumn(). - \since 4.4 \sa createColumn() */ void QColumnView::initializeColumn(QAbstractItemView *column) const diff --git a/src/widgets/itemviews/qdatawidgetmapper.cpp b/src/widgets/itemviews/qdatawidgetmapper.cpp index 3b7e97eed9a..bc2c88a66df 100644 --- a/src/widgets/itemviews/qdatawidgetmapper.cpp +++ b/src/widgets/itemviews/qdatawidgetmapper.cpp @@ -216,7 +216,6 @@ void QDataWidgetMapperPrivate::modelDestroyed() \class QDataWidgetMapper \brief The QDataWidgetMapper class provides mapping between a section of a data model to widgets. - \since 4.2 \ingroup model-view \ingroup advanced \inmodule QtWidgets @@ -463,8 +462,6 @@ void QDataWidgetMapper::addMapping(QWidget *widget, int section) } /*! - \since 4.3 - Essentially the same as addMapping(), but adds the possibility to specify the property to use specifying \a propertyName. @@ -515,7 +512,6 @@ int QDataWidgetMapper::mappedSection(QWidget *widget) const } /*! - \since 4.3 Returns the name of the property that is used when mapping data to the given \a widget. diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 9ce09dbacc0..dbfe5a4511b 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -203,7 +203,6 @@ static const int maxSizeSection = 1048575; // since section size is in a bitfiel /*! \fn void QHeaderView::sectionEntered(int logicalIndex) - \since 4.3 This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by @@ -243,7 +242,6 @@ static const int maxSizeSection = 1048575; // since section size is in a bitfiel /*! \fn void QHeaderView::sortIndicatorChanged(int logicalIndex, Qt::SortOrder order) - \since 4.3 This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified @@ -254,7 +252,6 @@ static const int maxSizeSection = 1048575; // since section size is in a bitfiel /*! \fn void QHeaderView::geometriesChanged() - \since 4.2 This signal is emitted when the header's geometries have changed. */ @@ -421,7 +418,6 @@ void QHeaderView::setOffset(int newOffset) } /*! - \since 4.2 Sets the offset to the start of the section at the given \a visualSectionNumber. \a visualSectionNumber is the actual visible section when hiddenSections are not considered. That is not always the same as visualIndex(). @@ -438,7 +434,6 @@ void QHeaderView::setOffsetToSectionPosition(int visualSectionNumber) } /*! - \since 4.2 Sets the offset to make the last section visible. \sa setOffset(), sectionPosition(), setOffsetToSectionPosition() @@ -752,7 +747,6 @@ void QHeaderView::moveSection(int from, int to) } /*! - \since 4.2 Swaps the section at visual index \a first with the section at visual index \a second. @@ -940,8 +934,6 @@ bool QHeaderView::isSectionHidden(int logicalIndex) const } /*! - \since 4.1 - Returns the number of sections in the header that has been hidden. \sa setSectionHidden(), isSectionHidden() @@ -1279,8 +1271,6 @@ int QHeaderView::resizeContentsPrecision() const } /*! - \since 4.1 - Returns the number of sections that are set to resize mode stretch. In views, this can be used to see if the headerview needs to resize the sections when the view's geometry changes. @@ -1468,7 +1458,6 @@ void QHeaderView::setStretchLastSection(bool stretch) } /*! - \since 4.2 \property QHeaderView::cascadingSectionResizes \brief whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its @@ -1531,7 +1520,6 @@ void QHeaderView::resetDefaultSectionSize() } /*! - \since 4.2 \property QHeaderView::minimumSectionSize \brief the minimum size of the header sections. @@ -1635,7 +1623,6 @@ void QHeaderView::setMaximumSectionSize(int size) /*! - \since 4.1 \property QHeaderView::defaultAlignment \brief the default alignment of the text in each header section */ @@ -1678,8 +1665,6 @@ bool QHeaderView::sectionsMoved() const } /*! - \since 4.1 - Returns \c true if sections in the header has been hidden; otherwise returns false; @@ -1693,8 +1678,6 @@ bool QHeaderView::sectionsHidden() const #ifndef QT_NO_DATASTREAM /*! - \since 4.3 - Saves the current state of this header view. To restore the saved state, pass the return value to restoreState(). @@ -1714,7 +1697,6 @@ QByteArray QHeaderView::saveState() const } /*! - \since 4.3 Restores the \a state of this header view. This function returns \c true if the state was restored; otherwise returns false. @@ -1803,7 +1785,6 @@ void QHeaderView::headerDataChanged(Qt::Orientation orientation, int logicalFirs /*! \internal - \since 4.2 Updates the section specified by the given \a logicalIndex. */ diff --git a/src/widgets/itemviews/qitemdelegate.cpp b/src/widgets/itemviews/qitemdelegate.cpp index d1c7bb3d581..b50287a4ad6 100644 --- a/src/widgets/itemviews/qitemdelegate.cpp +++ b/src/widgets/itemviews/qitemdelegate.cpp @@ -231,7 +231,7 @@ QSizeF QItemDelegatePrivate::doTextLayout(int lineWidth) const \row \li \l Qt::AccessibleDescriptionRole \li QString \row \li \l Qt::AccessibleTextRole \li QString \endomit - \row \li \l Qt::BackgroundRole \li QBrush (\since 4.2) + \row \li \l Qt::BackgroundRole \li QBrush \row \li \l Qt::CheckStateRole \li Qt::CheckState \row \li \l Qt::DecorationRole \li QIcon, QPixmap and QColor \row \li \l Qt::DisplayRole \li QString and types with a string representation @@ -242,7 +242,7 @@ QSizeF QItemDelegatePrivate::doTextLayout(int lineWidth) const \row \li \l Qt::StatusTipRole \li \endomit \row \li \l Qt::TextAlignmentRole \li Qt::Alignment - \row \li \l Qt::ForegroundRole \li QBrush (\since 4.2) + \row \li \l Qt::ForegroundRole \li QBrush \omit \row \li \l Qt::ToolTipRole \row \li \l Qt::WhatsThisRole @@ -315,7 +315,6 @@ QItemDelegate::~QItemDelegate() /*! \property QItemDelegate::clipping \brief if the delegate should clip the paint events - \since 4.2 This property will set the paint clip to the size of the item. The default value is on. It is useful for cases such @@ -757,9 +756,7 @@ void QItemDelegate::drawCheck(QPainter *painter, } /*! - \since 4.2 - - Renders the item background for the given \a index, +s Renders the item background for the given \a index, using the given \a painter and style \a option. */ diff --git a/src/widgets/itemviews/qitemeditorfactory.cpp b/src/widgets/itemviews/qitemeditorfactory.cpp index 70d11e1b38f..78a00cfc106 100644 --- a/src/widgets/itemviews/qitemeditorfactory.cpp +++ b/src/widgets/itemviews/qitemeditorfactory.cpp @@ -81,7 +81,6 @@ Q_SIGNALS: \class QItemEditorFactory \brief The QItemEditorFactory class provides widgets for editing item data in views and delegates. - \since 4.2 \ingroup model-view \inmodule QtWidgets @@ -336,7 +335,6 @@ void QItemEditorFactory::setDefaultFactory(QItemEditorFactory *factory) \class QItemEditorCreatorBase \brief The QItemEditorCreatorBase class provides an abstract base class that must be subclassed when implementing new item editor creators. - \since 4.2 \ingroup model-view \inmodule QtWidgets @@ -413,7 +411,6 @@ QItemEditorCreatorBase::~QItemEditorCreatorBase() item editor creator bases without subclassing QItemEditorCreatorBase. - \since 4.2 \ingroup model-view \inmodule QtWidgets @@ -464,7 +461,6 @@ QItemEditorCreatorBase::~QItemEditorCreatorBase() possibility to register widgets without having to subclass QItemEditorCreatorBase. - \since 4.2 \ingroup model-view \inmodule QtWidgets diff --git a/src/widgets/itemviews/qlistview.cpp b/src/widgets/itemviews/qlistview.cpp index a7f19319473..4cd11152b67 100644 --- a/src/widgets/itemviews/qlistview.cpp +++ b/src/widgets/itemviews/qlistview.cpp @@ -132,7 +132,6 @@ extern bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event); */ /*! - \since 4.2 \fn void QListView::indexesMoved(const QModelIndexList &indexes) This signal is emitted when the specified \a indexes are moved in the view. @@ -355,8 +354,6 @@ int QListView::spacing() const set to \l Batched. The default value is 100. - - \since 4.2 */ void QListView::setBatchSize(int batchSize) @@ -1316,8 +1313,6 @@ QRect QListView::rectForIndex(const QModelIndex &index) const } /*! - \since 4.1 - Sets the contents position of the item at \a index in the model to the given \a position. If the list view's movement mode is Static or its view mode is ListView, @@ -1644,7 +1639,6 @@ int QListView::modelColumn() const /*! \property QListView::uniformItemSizes \brief whether all items in the listview have the same size - \since 4.1 This property should only be set to true if it is guaranteed that all items in the view have the same size. This enables the view to do some @@ -1667,7 +1661,6 @@ bool QListView::uniformItemSizes() const /*! \property QListView::wordWrap \brief the item text word-wrapping policy - \since 4.2 If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. @@ -1696,7 +1689,6 @@ bool QListView::wordWrap() const /*! \property QListView::selectionRectVisible \brief if the selection rectangle should be visible - \since 4.3 If this property is \c true then the selection rectangle is visible; otherwise it will be hidden. diff --git a/src/widgets/itemviews/qlistwidget.cpp b/src/widgets/itemviews/qlistwidget.cpp index a91902813a9..674028df2bb 100644 --- a/src/widgets/itemviews/qlistwidget.cpp +++ b/src/widgets/itemviews/qlistwidget.cpp @@ -516,7 +516,6 @@ Qt::DropActions QListModel::supportedDropActions() const /*! \fn void QListWidgetItem::setHidden(bool hide) - \since 4.2 Hides the item if \a hide is true; otherwise shows the item. @@ -525,7 +524,6 @@ Qt::DropActions QListModel::supportedDropActions() const /*! \fn bool QListWidgetItem::isHidden() const - \since 4.2 Returns \c true if the item is hidden; otherwise returns \c false. @@ -727,8 +725,6 @@ void QListWidgetItem::write(QDataStream &out) const #endif // QT_NO_DATASTREAM /*! - \since 4.1 - Constructs a copy of \a other. Note that type() and listWidget() are not copied. @@ -877,7 +873,6 @@ QDataStream &operator>>(QDataStream &in, QListWidgetItem &item) /*! \fn QBrush QListWidgetItem::background() const - \since 4.2 Returns the brush used to display the list item's background. @@ -886,7 +881,6 @@ QDataStream &operator>>(QDataStream &in, QListWidgetItem &item) /*! \fn QBrush QListWidgetItem::foreground() const - \since 4.2 Returns the brush used to display the list item's foreground (e.g. text). @@ -903,14 +897,12 @@ QDataStream &operator>>(QDataStream &in, QListWidgetItem &item) /*! \fn QSize QListWidgetItem::sizeHint() const - \since 4.1 Returns the size hint set for the list item. */ /*! \fn void QListWidgetItem::setSizeHint(const QSize &size) - \since 4.1 Sets the size hint for the list item to be \a size. If no size hint is set or \a size is invalid, the item @@ -919,7 +911,6 @@ QDataStream &operator>>(QDataStream &in, QListWidgetItem &item) /*! \fn void QListWidgetItem::setSelected(bool select) - \since 4.2 Sets the selected state of the item to \a select. @@ -946,7 +937,6 @@ void QListWidgetItem::setSelected(bool select) /*! \fn bool QListWidgetItem::isSelected() const - \since 4.2 Returns \c true if the item is selected; otherwise returns \c false. @@ -1050,7 +1040,6 @@ void QListWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn void QListWidgetItem::setBackground(const QBrush &brush) - \since 4.2 Sets the background brush of the list item to the given \a brush. Setting a default-constructed brush will let the view use the @@ -1061,7 +1050,6 @@ void QListWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn void QListWidgetItem::setForeground(const QBrush &brush) - \since 4.2 Sets the foreground brush of the list item to the given \a brush. Setting a default-constructed brush will let the view use the @@ -1349,8 +1337,6 @@ void QListWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.3 - \fn void QListWidget::removeItemWidget(QListWidgetItem *item) Removes the widget set on the given \a item. @@ -1523,7 +1509,6 @@ void QListWidget::setCurrentItem(QListWidgetItem *item) } /*! - \since 4.4 Set the current item to \a item, using the given \a command. */ void QListWidget::setCurrentItem(QListWidgetItem *item, QItemSelectionModel::SelectionFlags command) @@ -1556,8 +1541,6 @@ void QListWidget::setCurrentRow(int row) } /*! - \since 4.4 - Sets the current row to be the given \a row, using the given \a command, */ void QListWidget::setCurrentRow(int row, QItemSelectionModel::SelectionFlags command) @@ -1610,7 +1593,6 @@ void QListWidget::sortItems(Qt::SortOrder order) } /*! - \since 4.2 \property QListWidget::sortingEnabled \brief whether sorting is enabled @@ -1690,8 +1672,6 @@ bool QListWidget::isPersistentEditorOpen(QListWidgetItem *item) const } /*! - \since 4.1 - Returns the widget displayed in the given \a item. \sa setItemWidget(), removeItemWidget() @@ -1704,8 +1684,6 @@ QWidget *QListWidget::itemWidget(QListWidgetItem *item) const } /*! - \since 4.1 - Sets the \a widget to be displayed in the given \a item. This function should only be used to display static content in the place of diff --git a/src/widgets/itemviews/qstyleditemdelegate.cpp b/src/widgets/itemviews/qstyleditemdelegate.cpp index 54c1fb4f528..19a367ca35b 100644 --- a/src/widgets/itemviews/qstyleditemdelegate.cpp +++ b/src/widgets/itemviews/qstyleditemdelegate.cpp @@ -83,8 +83,6 @@ public: \ingroup model-view \inmodule QtWidgets - \since 4.4 - When displaying data from models in Qt item views, e.g., a QTableView, the individual items are drawn by a delegate. Also, when an item is edited, it provides an editor widget, which is @@ -115,7 +113,7 @@ public: \row \li \l Qt::AccessibleDescriptionRole \li QString \row \li \l Qt::AccessibleTextRole \li QString \endomit - \row \li \l Qt::BackgroundRole \li QBrush \since 4.2 + \row \li \l Qt::BackgroundRole \li QBrush \row \li \l Qt::CheckStateRole \li Qt::CheckState \row \li \l Qt::DecorationRole \li QIcon, QPixmap, QImage and QColor \row \li \l Qt::DisplayRole \li QString and types with a string representation @@ -126,7 +124,7 @@ public: \row \li \l Qt::StatusTipRole \li \endomit \row \li \l Qt::TextAlignmentRole \li Qt::Alignment - \row \li \l Qt::ForegroundRole \li QBrush \since 4.2 + \row \li \l Qt::ForegroundRole \li QBrush \omit \row \li \l Qt::ToolTipRole \row \li \l Qt::WhatsThisRole diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index 6b69f380f05..89ca5c1a51c 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -2593,8 +2593,6 @@ int QTableView::rowAt(int y) const } /*! - \since 4.1 - Sets the height of the given \a row to be \a height. */ void QTableView::setRowHeight(int row, int height) @@ -2640,8 +2638,6 @@ int QTableView::columnAt(int x) const } /*! - \since 4.1 - Sets the width of the given \a column to be \a width. */ void QTableView::setColumnWidth(int column, int width) @@ -2711,7 +2707,6 @@ void QTableView::setColumnHidden(int column, bool hide) } /*! - \since 4.2 \property QTableView::sortingEnabled \brief whether sorting is enabled @@ -2810,7 +2805,6 @@ void QTableView::setGridStyle(Qt::PenStyle style) /*! \property QTableView::wordWrap \brief the item text word-wrapping policy - \since 4.3 If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. @@ -2841,7 +2835,6 @@ bool QTableView::wordWrap() const /*! \property QTableView::cornerButtonEnabled \brief whether the button in the top-left corner is enabled - \since 4.3 If this property is \c true then button in the top-left corner of the table view is enabled. Clicking on this button will @@ -3297,8 +3290,6 @@ void QTableView::resizeColumnsToContents() } /*! - \since 4.2 - Sorts the model by the values in the given \a column and \a order. \a column may be -1, in which case no sort indicator will be shown @@ -3354,7 +3345,6 @@ bool QTableView::isIndexHidden(const QModelIndex &index) const /*! \fn void QTableView::setSpan(int row, int column, int rowSpanCount, int columnSpanCount) - \since 4.2 Sets the span of the table element at (\a row, \a column) to the number of rows and columns specified by (\a rowSpanCount, \a columnSpanCount). @@ -3371,8 +3361,6 @@ void QTableView::setSpan(int row, int column, int rowSpan, int columnSpan) } /*! - \since 4.2 - Returns the row span of the table element at (\a row, \a column). The default is 1. @@ -3385,8 +3373,6 @@ int QTableView::rowSpan(int row, int column) const } /*! - \since 4.2 - Returns the column span of the table element at (\a row, \a column). The default is 1. @@ -3399,8 +3385,6 @@ int QTableView::columnSpan(int row, int column) const } /*! - \since 4.4 - Removes all row and column spans in the table view. \sa setSpan() diff --git a/src/widgets/itemviews/qtablewidget.cpp b/src/widgets/itemviews/qtablewidget.cpp index 6dd812f6fbf..9ce3b8d8768 100644 --- a/src/widgets/itemviews/qtablewidget.cpp +++ b/src/widgets/itemviews/qtablewidget.cpp @@ -928,7 +928,6 @@ Qt::DropActions QTableModel::supportedDropActions() const */ /*! - \since 4.1 \fn int QTableWidgetSelectionRange::rowCount() const Returns the number of rows in the range. @@ -939,7 +938,6 @@ Qt::DropActions QTableModel::supportedDropActions() const */ /*! - \since 4.1 \fn int QTableWidgetSelectionRange::columnCount() const Returns the number of columns in the range. @@ -996,7 +994,6 @@ Qt::DropActions QTableModel::supportedDropActions() const /*! \fn int QTableWidgetItem::row() const - \since 4.2 Returns the row of the item in the table. If the item is not in a table, this function will return -1. @@ -1006,7 +1003,6 @@ Qt::DropActions QTableModel::supportedDropActions() const /*! \fn int QTableWidgetItem::column() const - \since 4.2 Returns the column of the item in the table. If the item is not in a table, this function will return -1. @@ -1016,14 +1012,12 @@ Qt::DropActions QTableModel::supportedDropActions() const /*! \fn QSize QTableWidgetItem::sizeHint() const - \since 4.1 Returns the size hint set for the table item. */ /*! \fn void QTableWidgetItem::setSizeHint(const QSize &size) - \since 4.1 Sets the size hint for the table item to be \a size. If no size hint is set or \a size is invalid, the item @@ -1052,7 +1046,6 @@ Qt::DropActions QTableModel::supportedDropActions() const /*! \fn bool QTableWidgetItem::isSelected() const - \since 4.2 Returns \c true if the item is selected, otherwise returns \c false. @@ -1071,7 +1064,6 @@ bool QTableWidgetItem::isSelected() const /*! \fn void QTableWidgetItem::setSelected(bool select) - \since 4.2 Sets the selected state of the item to \a select. @@ -1213,7 +1205,6 @@ void QTableWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn QBrush QTableWidgetItem::background() const - \since 4.2 Returns the brush used to render the item's background. @@ -1222,7 +1213,6 @@ void QTableWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn void QTableWidgetItem::setBackground(const QBrush &brush) - \since 4.2 Sets the item's background brush to the specified \a brush. Setting a default-constructed brush will let the view use the @@ -1233,7 +1223,6 @@ void QTableWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn QBrush QTableWidgetItem::foreground() const - \since 4.2 Returns the brush used to render the item's foreground (e.g. text). @@ -1242,7 +1231,6 @@ void QTableWidgetItem::setFlags(Qt::ItemFlags aflags) /*! \fn void QTableWidgetItem::setForeground(const QBrush &brush) - \since 4.2 Sets the item's foreground brush to the specified \a brush. Setting a default-constructed brush will let the view use the @@ -1488,8 +1476,6 @@ QDataStream &operator<<(QDataStream &out, const QTableWidgetItem &item) #endif // QT_NO_DATASTREAM /*! - \since 4.1 - Constructs a copy of \a other. Note that type() and tableWidget() are not copied. @@ -1766,7 +1752,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, /*! - \since 4.1 \fn void QTableWidget::cellPressed(int row, int column) This signal is emitted whenever a cell in the table is pressed. @@ -1774,7 +1759,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::cellClicked(int row, int column) This signal is emitted whenever a cell in the table is clicked. @@ -1782,7 +1766,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::cellDoubleClicked(int row, int column) This signal is emitted whenever a cell in the table is double @@ -1791,7 +1774,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::cellActivated(int row, int column) This signal is emitted when the cell specified by \a row and \a column @@ -1799,7 +1781,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::cellEntered(int row, int column) This signal is emitted when the mouse cursor enters a cell. The @@ -1810,7 +1791,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::cellChanged(int row, int column) This signal is emitted whenever the data of the item in the cell @@ -1818,7 +1798,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.1 \fn void QTableWidget::currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn) This signal is emitted whenever the current cell changes. The cell @@ -1828,7 +1807,6 @@ void QTableWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.3 \fn void QTableWidget::removeCellWidget(int row, int column) Removes the widget set on the cell indicated by \a row and \a column. @@ -2042,7 +2020,6 @@ void QTableWidget::setVerticalHeaderItem(int row, QTableWidgetItem *item) } /*! - \since 4.1 Removes the vertical header item at \a row from the header without deleting it. */ QTableWidgetItem *QTableWidget::takeVerticalHeaderItem(int row) @@ -2081,7 +2058,6 @@ void QTableWidget::setHorizontalHeaderItem(int column, QTableWidgetItem *item) } /*! - \since 4.1 Removes the horizontal header item at \a column from the header without deleting it. */ QTableWidgetItem *QTableWidget::takeHorizontalHeaderItem(int column) @@ -2175,8 +2151,6 @@ void QTableWidget::setCurrentItem(QTableWidgetItem *item) } /*! - \since 4.4 - Sets the current item to be \a item, using the given \a command. \sa currentItem(), setCurrentCell() @@ -2188,8 +2162,6 @@ void QTableWidget::setCurrentItem(QTableWidgetItem *item, QItemSelectionModel::S } /*! - \since 4.1 - Sets the current cell to be the cell at position (\a row, \a column). @@ -2204,8 +2176,6 @@ void QTableWidget::setCurrentCell(int row, int column) } /*! - \since 4.4 - Sets the current cell to be the cell at position (\a row, \a column), using the given \a command. @@ -2298,8 +2268,6 @@ bool QTableWidget::isPersistentEditorOpen(QTableWidgetItem *item) const } /*! - \since 4.1 - Returns the widget displayed in the cell in the given \a row and \a column. \note The table takes ownership of the widget. @@ -2313,8 +2281,6 @@ QWidget *QTableWidget::cellWidget(int row, int column) const } /*! - \since 4.1 - Sets the given \a widget to be displayed in the cell in the given \a row and \a column, passing the ownership of the widget to the table. @@ -2556,8 +2522,6 @@ void QTableWidget::clear() } /*! - \since 4.2 - Removes all items not in the headers from the view. This will also remove all selections. The table dimensions stay the same. diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp index e859a26d670..5d726386b30 100644 --- a/src/widgets/itemviews/qtreeview.cpp +++ b/src/widgets/itemviews/qtreeview.cpp @@ -306,7 +306,6 @@ void QTreeView::setHeader(QHeaderView *header) /*! \property QTreeView::autoExpandDelay \brief The delay time before items in a tree are opened during a drag and drop operation. - \since 4.3 This property holds the amount of time in milliseconds that the user must wait over a node before that node will automatically open or close. If the time is @@ -442,7 +441,6 @@ void QTreeView::setItemsExpandable(bool enable) /*! \property QTreeView::expandsOnDoubleClick - \since 4.4 \brief whether the items can be expanded by double-clicking. This property holds whether the user can expand and collapse items @@ -483,8 +481,6 @@ int QTreeView::columnWidth(int column) const } /*! - \since 4.2 - Sets the width of the given \a column to the \a width specified. \sa columnWidth(), resizeColumnToContents() @@ -532,7 +528,6 @@ void QTreeView::setColumnHidden(int column, bool hide) /*! \property QTreeView::headerHidden \brief whether the header is shown or not. - \since 4.4 If this property is \c true, the header is not shown otherwise it is. The default value is false. @@ -589,8 +584,6 @@ void QTreeView::setRowHidden(int row, const QModelIndex &parent, bool hide) } /*! - \since 4.3 - Returns \c true if the item in first column in the given \a row of the \a parent is spanning all the columns; otherwise returns \c false. @@ -606,8 +599,6 @@ bool QTreeView::isFirstColumnSpanned(int row, const QModelIndex &parent) const } /*! - \since 4.3 - If \a span is true the item in the first column in the \a row with the given \a parent is set to span all columns, otherwise all items on the \a row are shown. @@ -817,7 +808,6 @@ void QTreeView::setExpanded(const QModelIndex &index, bool expanded) } /*! - \since 4.2 \property QTreeView::sortingEnabled \brief whether sorting is enabled @@ -858,7 +848,6 @@ bool QTreeView::isSortingEnabled() const } /*! - \since 4.2 \property QTreeView::animated \brief whether animations are enabled @@ -883,7 +872,6 @@ bool QTreeView::isAnimated() const } /*! - \since 4.2 \property QTreeView::allColumnsShowFocus \brief whether items should show keyboard focus using all columns @@ -911,7 +899,6 @@ bool QTreeView::allColumnsShowFocus() const /*! \property QTreeView::wordWrap \brief the item text word-wrapping policy - \since 4.3 If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. @@ -1504,7 +1491,6 @@ void QTreeViewPrivate::adjustViewOptionsForIndex(QStyleOptionViewItem *option, c /*! - \since 4.2 Draws the part of the tree intersecting the given \a region using the specified \a painter. @@ -2611,8 +2597,6 @@ void QTreeView::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int e } /*! - \since 4.1 - Informs the view that the rows from the \a start row to the \a end row inclusive have been removed from the given \a parent model item. */ @@ -2659,8 +2643,6 @@ void QTreeView::resizeColumnToContents(int column) } /*! - \since 4.2 - Sorts the model by the values in the given \a column and \a order. \a column may be -1, in which case no sort indicator will be shown @@ -2728,7 +2710,6 @@ QSize QTreeView::viewportSizeHint() const } /*! - \since 4.2 Expands all expandable items. \note This function will not try to \l{QAbstractItemModel::fetchMore}{fetch more} @@ -2798,8 +2779,6 @@ void QTreeView::expandRecursively(const QModelIndex &index, int depth) } /*! - \since 4.2 - Collapses all expanded items. \sa expandAll(), expand(), collapse(), setExpanded() @@ -2822,7 +2801,6 @@ void QTreeView::collapseAll() } /*! - \since 4.3 Expands all expandable items to the given \a depth. \note This function will not try to \l{QAbstractItemModel::fetchMore}{fetch more} @@ -3081,7 +3059,6 @@ int QTreeView::indexRowSizeHint(const QModelIndex &index) const } /*! - \since 4.3 Returns the height of the row indicated by the given \a index. \sa indexRowSizeHint() */ diff --git a/src/widgets/itemviews/qtreewidget.cpp b/src/widgets/itemviews/qtreewidget.cpp index b20fe77ef77..a6f6c9f9366 100644 --- a/src/widgets/itemviews/qtreewidget.cpp +++ b/src/widgets/itemviews/qtreewidget.cpp @@ -42,7 +42,6 @@ public: /*! \enum QTreeWidgetItem::ChildIndicatorPolicy - \since 4.3 \value ShowIndicator The controls for expanding and collapsing will be shown for this item even if there are no children. \value DontShowIndicator The controls for expanding and collapsing will never be shown even if there are children. If the node is forced open the user will not be able to expand or collapse the item. @@ -51,7 +50,6 @@ public: /*! \fn void QTreeWidgetItem::setDisabled(bool disabled) - \since 4.3 Disables the item if \a disabled is true; otherwise enables the item. @@ -60,7 +58,6 @@ public: /*! \fn bool QTreeWidgetItem::isDisabled() const - \since 4.3 Returns \c true if the item is disabled; otherwise returns \c false. @@ -954,7 +951,6 @@ void QTreeModel::timerEvent(QTimerEvent *ev) /*! \fn void QTreeWidgetItem::sortChildren(int column, Qt::SortOrder order) - \since 4.2 Sorts the children of the item using the given \a order, by the values in the given \a column. @@ -971,7 +967,6 @@ void QTreeModel::timerEvent(QTimerEvent *ev) /*! \fn void QTreeWidgetItem::setSelected(bool select) - \since 4.2 Sets the selected state of the item to \a select. @@ -991,7 +986,6 @@ void QTreeWidgetItem::setSelected(bool select) /*! \fn bool QTreeWidgetItem::isSelected() const - \since 4.2 Returns \c true if the item is selected, otherwise returns \c false. @@ -1004,7 +998,6 @@ bool QTreeWidgetItem::isSelected() const /*! \fn void QTreeWidgetItem::setHidden(bool hide) - \since 4.2 Hides the item if \a hide is true, otherwise shows the item. \note A call to this function has no effect if the item is not currently in a view. In particular, @@ -1030,7 +1023,6 @@ void QTreeWidgetItem::setHidden(bool hide) /*! \fn bool QTreeWidgetItem::isHidden() const - \since 4.2 Returns \c true if the item is hidden, otherwise returns \c false. @@ -1052,7 +1044,6 @@ bool QTreeWidgetItem::isHidden() const /*! \fn void QTreeWidgetItem::setExpanded(bool expand) - \since 4.2 Expands the item if \a expand is true, otherwise collapses the item. \warning The QTreeWidgetItem must be added to the QTreeWidget before calling this function. @@ -1070,7 +1061,6 @@ void QTreeWidgetItem::setExpanded(bool expand) /*! \fn bool QTreeWidgetItem::isExpanded() const - \since 4.2 Returns \c true if the item is expanded, otherwise returns \c false. @@ -1087,7 +1077,6 @@ bool QTreeWidgetItem::isExpanded() const /*! \fn void QTreeWidgetItem::setFirstColumnSpanned(bool span) - \since 4.3 Sets the first section to span all columns if \a span is true; otherwise all item sections are shown. @@ -1105,7 +1094,6 @@ void QTreeWidgetItem::setFirstColumnSpanned(bool span) /*! \fn bool QTreeWidgetItem::isFirstColumnSpanned() const - \since 4.3 Returns \c true if the item is spanning all the columns in a row; otherwise returns \c false. @@ -1220,7 +1208,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn QBrush QTreeWidgetItem::background(int column) const - \since 4.2 Returns the brush used to render the background of the specified \a column. @@ -1229,7 +1216,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn void QTreeWidgetItem::setBackground(int column, const QBrush &brush) - \since 4.2 Sets the background brush of the label in the given \a column to the specified \a brush. @@ -1245,7 +1231,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn QBrush QTreeWidgetItem::foreground(int column) const - \since 4.2 Returns the brush used to render the foreground (e.g. text) of the specified \a column. @@ -1257,7 +1242,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn void QTreeWidgetItem::setForeground(int column, const QBrush &brush) - \since 4.2 Sets the foreground brush of the label in the given \a column to the specified \a brush. @@ -1283,7 +1267,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn QSize QTreeWidgetItem::sizeHint(int column) const - \since 4.1 Returns the size hint set for the tree item in the given \a column (see \l{QSize}). @@ -1291,7 +1274,6 @@ bool QTreeWidgetItem::isFirstColumnSpanned() const /*! \fn void QTreeWidgetItem::setSizeHint(int column, const QSize &size) - \since 4.1 Sets the size hint for the tree item in the given \a column to be \a size. If no size hint is set or \a size is invalid, the item @@ -1897,8 +1879,6 @@ void QTreeWidgetItem::write(QDataStream &out) const #endif // QT_NO_DATASTREAM /*! - \since 4.1 - Constructs a copy of \a other. Note that type() and treeWidget() are not copied. @@ -2034,8 +2014,6 @@ QTreeWidgetItem *QTreeWidgetItem::takeChild(int index) } /*! - \since 4.1 - Appends the given list of \a children to the item. \sa insertChildren(), takeChildren() @@ -2046,8 +2024,6 @@ void QTreeWidgetItem::addChildren(const QList<QTreeWidgetItem*> &children) } /*! - \since 4.1 - Inserts the given list of \a children into the list of the item children at \a index . Children that have already been inserted somewhere else won't be inserted. @@ -2101,8 +2077,6 @@ void QTreeWidgetItem::insertChildren(int index, const QList<QTreeWidgetItem*> &c } /*! - \since 4.1 - Removes the list of children and returns it, otherwise returns an empty list. */ QList<QTreeWidgetItem*> QTreeWidgetItem::takeChildren() @@ -2223,8 +2197,6 @@ QVariant QTreeWidgetItem::childrenCheckState(int column) const } /*! - \since 4.5 - Causes the model associated with this item to emit a \l{QAbstractItemModel::dataChanged()}{dataChanged}() signal for this item. @@ -2564,8 +2536,6 @@ void QTreeWidgetPrivate::dataChanged(const QModelIndex &topLeft, */ /*! - \since 4.3 - \fn void QTreeWidget::removeItemWidget(QTreeWidgetItem *item, int column) Removes the widget set in the given \a item in the given \a column. @@ -2643,8 +2613,6 @@ void QTreeWidget::setColumnCount(int columns) } /*! - \since 4.2 - Returns the tree widget's invisible root item. The invisible root item provides access to the tree widget's top-level items @@ -2702,8 +2670,6 @@ void QTreeWidget::insertTopLevelItem(int index, QTreeWidgetItem *item) } /*! - \since 4.1 - Appends the \a item as a top-level item in the widget. \sa insertTopLevelItem() @@ -2740,8 +2706,6 @@ int QTreeWidget::indexOfTopLevelItem(QTreeWidgetItem *item) const } /*! - \since 4.1 - Inserts the list of \a items at \a index in the top level in the view. Items that have already been inserted somewhere else won't be inserted. @@ -2827,7 +2791,6 @@ void QTreeWidget::setHeaderLabels(const QStringList &labels) /*! \fn void QTreeWidget::setHeaderLabel(const QString &label) - \since 4.2 Same as setHeaderLabels(QStringList(\a label)). */ @@ -2844,7 +2807,6 @@ QTreeWidgetItem *QTreeWidget::currentItem() const } /*! - \since 4.1 Returns the current column in the tree widget. \sa setCurrentItem(), columnCount() @@ -2868,7 +2830,6 @@ void QTreeWidget::setCurrentItem(QTreeWidgetItem *item) } /*! - \since 4.1 Sets the current \a item in the tree widget and the current column to \a column. \sa currentItem() @@ -2880,7 +2841,6 @@ void QTreeWidget::setCurrentItem(QTreeWidgetItem *item, int column) } /*! - \since 4.4 Sets the current \a item in the tree widget and the current column to \a column, using the given \a command. @@ -2933,8 +2893,6 @@ QRect QTreeWidget::visualItemRect(const QTreeWidgetItem *item) const } /*! - \since 4.1 - Returns the column used to sort the contents of the widget. \sa sortItems() @@ -3014,8 +2972,6 @@ bool QTreeWidget::isPersistentEditorOpen(QTreeWidgetItem *item, int column) cons } /*! - \since 4.1 - Returns the widget displayed in the cell specified by \a item and the given \a column. */ @@ -3026,8 +2982,6 @@ QWidget *QTreeWidget::itemWidget(QTreeWidgetItem *item, int column) const } /*! - \since 4.1 - Sets the given \a widget to be displayed in the cell specified by the given \a item and \a column. @@ -3093,8 +3047,6 @@ QList<QTreeWidgetItem*> QTreeWidget::findItems(const QString &text, Qt::MatchFla /*! - \since 4.3 - Returns the item above the given \a item. */ QTreeWidgetItem *QTreeWidget::itemAbove(const QTreeWidgetItem *item) const @@ -3108,8 +3060,6 @@ QTreeWidgetItem *QTreeWidget::itemAbove(const QTreeWidgetItem *item) const } /*! - \since 4.3 - Returns the item visually below the given \a item. */ QTreeWidgetItem *QTreeWidget::itemBelow(const QTreeWidgetItem *item) const |