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

List:       kde-core-devel
Subject:    Re: Bug#31335: Toolbar disappear if you change it to flat and...
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-08-27 0:12:12
[Download RAW message or body]

On Wednesday 22 August 2001 21:31, Waldo Bastian wrote:
> Ouch. This seems to be a KDE-wide bug. I could reproduce it in kedit as well.
> 
> Cheers,
> Waldo
> 
> On Wednesday 22 August 2001 11:14 am, axela@bigfoot.com wrote:
> > Package: konsole
> > Version: 1.0.2 (using KDE 2.2.0 )
> > Severity: normal
> > Installed from:    Linux-Mandrake 7.2 (Odyssey) - Unsupported
> > Compiler:          gcc version 2.95.3 19991030 (prerelease)
> > OS:                Linux (i686) release 2.2.17-21mdk
> > OS/Compiler notes:
> >
> > If you change the toolbar to flat mode (by clicking on the little handle on
> > the left of the toolbar) and than unselect Show Toolbar and than select it
> > another time and than try to click on the flat handle, the handle disappear
> > and the toolbar doesn't appear anymore.
> >
> > Make the toolbar flat.
> > Setting->Show Toolbar (deselect) (the flat toolbar disappear).
> > Setting->Show Toolbar (select) (the flat toolbar appear).
> > click on the handle of the flat toolbar (handle disappear and no toolbar
> > show).

Looks like a Qt bug to me.

kdeui (KToolBar): KToolBar::hide mainToolBar
kdeui (KToolBar): KToolBar::hide mainToolBar realNl set to false
kdeui (KToolBar):  readPos set to 6
kdeui (KMainWindow): KMainWindow::saveMainWindowSettings KonqMainWindow
kdeui (KToolBar): KToolBar::show mainToolBar
kdeui (KToolBar): KToolBar::show mainToolBar moveToolBar with realNl=false realPos=6
kdeui (KMainWindow): KMainWindow::saveMainWindowSettings KonqMainWindow
 
When showing the toolbar, we set it to flat (QMainWindow::Minimized), as it was previously.
It's QMainWindow that's confused, and doesn't know where to restore this toolbar when
un-flatting it.

Of course this whole hide/show thing in ktoolbar is a bit hackish, since KToolbar has 
to remember itself where the toolbar was....
I hope Qt3's toolbar management does this better.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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