Review Request: Option to set no title for the folderview applet

Sebastian Kügler sebas at kde.org
Wed Mar 2 19:43:03 CET 2011


On Tuesday, March 01, 2011 17:05:02 Farhad Hedayati Fard wrote:
> > On Feb. 28, 2011, 3:45 p.m., Sebastian Kügler wrote:
> > > There's no need to add a UI option for this, the user should just be
> > > able to set an empty title and the header would then get hidden /
> > > collapsed.
> > > 
> > > Right now, this doesn't happen since when the label is empty, the
> > > default gets chosen. So this mechanism needs to be a bit smarter to
> > > detect when the user has actually set an empty title (which is
> > > different from title.isEmpty() so set default name).
> 
> How should I know whether the user has set the title empty to make the
> header hidden or by doing so he/she means to choose the default title
> instead of being hidden? I think It either needs a UI option or some
> special value in the custom title... Maybe I don't get what you're saying,
> can you please explain a little more? Thanks :)

You can track that using a local variable. Like the following:

- first start, user hasn't filled anything in -> title as it's now
- user edits, and leaves field empty -> collapse title
- user edits, and fills in something -> show whatever the user put in

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Plasma-devel mailing list