mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Fix some compiler warnings
This commit is contained in:
parent
a3920e3ae9
commit
f2758ec9f7
|
@ -127,7 +127,7 @@ public:
|
|||
* @deprecated The first tab state version has no version number, we keep
|
||||
* this method to restore old states (<= Dolphin 4.14.x).
|
||||
*/
|
||||
void restoreStateV1(const QByteArray& state);
|
||||
Q_DECL_DEPRECATED void restoreStateV1(const QByteArray& state);
|
||||
|
||||
signals:
|
||||
void activeViewChanged(DolphinViewContainer* viewContainer);
|
||||
|
|
|
@ -197,11 +197,12 @@ public:
|
|||
int lastVisibleIndex() const;
|
||||
|
||||
/**
|
||||
* @return Calculates the required size for all items in the model.
|
||||
* Calculates the required size for all items in the model.
|
||||
* It might be larger than KItemListView::itemSize().
|
||||
* In this case the layout grid will be stretched to assure an
|
||||
* unclipped item.
|
||||
* NOTE: the logical height (width) is actually the
|
||||
*
|
||||
* @note the logical height (width) is actually the
|
||||
* width (height) if the scroll orientation is Qt::Vertical!
|
||||
*/
|
||||
void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint) const;
|
||||
|
|
|
@ -335,11 +335,11 @@ Q_DECLARE_METATYPE(QList<int>)
|
|||
*
|
||||
* The test is data-driven and takes the following arguments:
|
||||
*
|
||||
* \param initialSelection The selection at the beginning.
|
||||
* \param anchor This item will be the anchor item.
|
||||
* \param current This item will be the current item.
|
||||
* \param expectedSelection Expected selection after anchor and current are set.
|
||||
* \param changeType Type of the change that is done then:
|
||||
* param initialSelection The selection at the beginning.
|
||||
* param anchor This item will be the anchor item.
|
||||
* param current This item will be the current item.
|
||||
* param expectedSelection Expected selection after anchor and current are set.
|
||||
* param changeType Type of the change that is done then:
|
||||
* - NoChange
|
||||
* - InsertItems -> data.at(0) provides the KItemRangeList. \sa KItemListSelectionManager::itemsInserted()
|
||||
* - RemoveItems -> data.at(0) provides the KItemRangeList. \sa KItemListSelectionManager::itemsRemoved()
|
||||
|
@ -351,11 +351,10 @@ Q_DECLARE_METATYPE(QList<int>)
|
|||
* data.at(1) provides the number of indices to be selected,
|
||||
* data.at(2) provides the selection mode.
|
||||
* \sa KItemListSelectionManager::setSelected()
|
||||
* \param data A list of QVariants which will be cast to the arguments needed for the chosen ChangeType (see above).
|
||||
* \param finalSelection The expected final selection.
|
||||
* param data A list of QVariants which will be cast to the arguments needed for the chosen ChangeType (see above).
|
||||
* param finalSelection The expected final selection.
|
||||
*
|
||||
*/
|
||||
|
||||
void KItemListSelectionManagerTest::testChangeSelection_data()
|
||||
{
|
||||
QTest::addColumn<KItemSet>("initialSelection");
|
||||
|
|
Loading…
Reference in a new issue