diff options
author | Jan Kundrát <jkt@flaska.net> | 2013-05-02 01:07:27 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-07 22:43:14 +0200 |
commit | c0e04bad701211613269a5014c593c1d4d25a619 (patch) | |
tree | 796106e973c7be0194e0063b985e257a39678fa7 /src | |
parent | bbf1e1a66733dd95e34534bd6025fff8c0f3e4eb (diff) |
doc: QWidget::setEnabled cannot enable children of a disabled widget
The current documentation is not terribly clear on this topic, and there's a
couple of posts on various forums where people want to do this. In fact, the old
wording suggested (at least to me) that it is OK to explicitly override a
disabled state, which is apparently not true.
Change-Id: I10c54e0089e9ba5d16958aea62df27feafdf7b3d
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 0e868091fc..cfccce7c41 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -3040,7 +3040,8 @@ QList<QAction*> QWidget::actions() const Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been - explicitly disabled. + explicitly disabled. It it not possible to explicitly enable a child + widget which is not a window while its parent widget remains disabled. By default, this property is true. |