[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KTMainWindow behaviour with hiding menu
From: Sven Radej <sven () lisa ! exp ! univie ! ac ! at>
Date: 1999-02-23 15:34:35
[Download RAW message or body]
On Tue, 23 Feb 1999, Nicolas Hadacek wrote:
>Hi all,
>
>some apps have the option to hide their menu since it takes less room on
>the desktop. But it seems KTMainWindow does not handle correctly its
>size with this hide/show menu feature and a fixed size widget.
>
>here is an example :
>
>class MainWindow : public KTMainWindow
>{
> mw = new MyWidget(this);
> mw->setFixedSize(100, 100);
> setView(mw);
>
> menu = new KMenu(this);
> ...
> setMenu(menu);
>}
>
>void MainWidow::toggleMenu()
>{
> if ( menu->isVisible() ) menu->hdie();
> else menu->show();
>
> updateRects();
>}
>
>The call to "updateRects()" isn't sufficient and I need (to obtain
>correct behaviour) to place the line "mw->setFixedSize(100, 100);"
>before it.
>
>Does KTMainWindow need fixing or does I need a fix ? :)
Cannot reproduce it.
I did what you do in toggleMenu() in kwindowtest (/kdelibs/kdetest) and it works
in fixed mode.
--
Sven Radej radej@kde.org
KDE developer Visit http://www.kde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic