Fix error in sample code on the Layout Management page.
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>bb10
parent
044645ead6
commit
958e4e6bec
|
|
@ -56,7 +56,7 @@ public:
|
|||
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);
|
||||
|
|
@ -73,7 +73,7 @@ private:
|
|||
//! [1]
|
||||
|
||||
//! [2]
|
||||
QLayoutItem *CardLayout::count() const
|
||||
int CardLayout::count() const
|
||||
{
|
||||
// QList::size() returns the number of QLayoutItems in the list
|
||||
return list.size();
|
||||
|
|
|
|||
Loading…
Reference in New Issue