Incorrect return type in a sample class (CardLayout) function.
Although the function is never called, the return type should be int,
not QLayoutItem*.
Task-number: QTBUG-25602
Change-Id: I05ebd07a35b6db62b8c12255186f9d9487da79f6
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
void addItem(QLayoutItem *item);
QSize sizeHint() const;
QSize minimumSize() const;
- QLayoutItem *count() const;
+ int count() const;
QLayoutItem *itemAt(int) const;
QLayoutItem *takeAt(int);
void setGeometry(const QRect &rect);
//! [1]
//! [2]
-QLayoutItem *CardLayout::count() const
+int CardLayout::count() const
{
// QList::size() returns the number of QLayoutItems in the list
return list.size();