[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Disabling widget hirarchy
From:       Cristian Tibirna <ctibirna () total ! net>
Date:       1999-09-30 20:43:14
[Download RAW message or body]


Hehe, when I think that Arnt almost convinced me that it's a
bad idea that setEnable() acts on the whole widget hierarchy :-)

That was back in the time of me writing kcmkwm modules, when I was quite
unhappy with having to deal with children individually. Glad to hear this
was fixed.
 
On Thu, 30 Sep 1999, Matthias Ettrich wrote:

> On Thu, 30 Sep 1999, Espen Sand wrote:
> > Anybody knows if there exist a method for disabling/enabling 
> > (ie, graying out) a widget hierarchy? Any Qt method?
> > It is next to trivial to implement. I believe this is a method that could be
> > useful in a central lib. 
> > 
> > Perhaps some util file in kdeui? kutil?
> 
> Qt HEAD (the development snapshots/ public CVS ) does this with a simple
> call to QWidget::setEnabled(bool)
> 
> /*! 
>   [....}
>   Disabling a widget implicitely disables all its children.  Enabling
>   respectively enables all child widgets unless they have been
>   explicitely disabled.
>   [....}
> */
> 
> Unfortunately the change was a bit too heavy to be put into Qt-2.0.2, but it
> will most certainly be in Qt-2.1.
> 
> It's almost next to trivial. The only problem is to keep tack of explictely
> disabled widgets (which required a new widget state flag). You may check the
> code in qwidget.cpp
> 
> Matthias
> 
> 
> > 
> > -- 
> > Espen Sand
> 
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic