Fixed typo in QObject docs.
The code samples seem to be using Qt::FindDirectChildOnly. Changed this to Qt::FindDirectChildrenOnly. Task-number: QTBUG-46383 Change-Id: I99b05e5e279bff8f799a09b0d7b02512fc73170b Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
parent
e9a7825cf7
commit
99b94aadf8
@ -418,17 +418,17 @@ QString example = tr("Example");
|
|||||||
//! [40]
|
//! [40]
|
||||||
|
|
||||||
//! [41]
|
//! [41]
|
||||||
QPushButton *button = parentWidget->findChild<QPushButton *>("button1", Qt::FindDirectChildOnly);
|
QPushButton *button = parentWidget->findChild<QPushButton *>("button1", Qt::FindDirectChildrenOnly);
|
||||||
//! [41]
|
//! [41]
|
||||||
|
|
||||||
|
|
||||||
//! [42]
|
//! [42]
|
||||||
QListWidget *list = parentWidget->findChild<QListWidget *>(QString(), Qt::FindDirectChildOnly);
|
QListWidget *list = parentWidget->findChild<QListWidget *>(QString(), Qt::FindDirectChildrenOnly);
|
||||||
//! [42]
|
//! [42]
|
||||||
|
|
||||||
|
|
||||||
//! [43]
|
//! [43]
|
||||||
QList<QPushButton *> childButtons = parentWidget.findChildren<QPushButton *>(QString(), Qt::FindDirectChildOnly);
|
QList<QPushButton *> childButtons = parentWidget.findChildren<QPushButton *>(QString(), Qt::FindDirectChildrenOnly);
|
||||||
//! [43]
|
//! [43]
|
||||||
|
|
||||||
//! [44]
|
//! [44]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user