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

List:       kde-devel
Subject:    Re: kdegames/ktuberling
From:       Chris Schlaeger <cs () kde ! org>
Date:       1999-06-29 7:26:00
[Download RAW message or body]

On Mon, Jun 28, 1999 at 02:09:38PM +0200, Stephan Kulow wrote:
> CVS by bischoff wrote:
> > 
> > kdegames/ktuberling toplevel.cpp,1.9,1.10
> > Author: bischoff
> > CVSROOT: /home/kde
> > Mon Jun 28 00:26:05 MET DST 1999
> > Update of /home/kde/kdegames/ktuberling
> > In directory zeus:/tmp/cvs-serv10073
> > 
> > Modified Files:
> >         toplevel.cpp
> > Log Message:
> > kde_datadir() was obsolete - fixed
> > Now the menubar and the toolbar have bad geometry - I don't know how to fix it
> 
> I already told the author of the new toolbar code and he
> promised to fix that. Unfortunatly he didn't :(

Promised? I don't make no promises! Coolo, haven't you said a few days
ago that the new toolbar code works great?

It's not a toolbar problem. KTMainWindow isn't used properly. Eric,
you need to put your graphic stuff into a widget and register it as
view (see KTMainWindow::setView()). KTMainWindow will not perform any
layout without a view beeing registered. You should not add any childs
apart from the bars and the view directly to your KTMainWindow
widget. Another thing is your setupGeometry function. I've seen this
in many other apps as well.

When using KTMainWindow do not define a minimum or maximum size for
KTMainWindow. This will conflict with the layout management and makes
no sense since you don't know the size of the bars. If you want to set
a minimum or maximum size then set it for the widget you have
registered as view widget.

Chris

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

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