MMB opens in new tab
Zack Rusin
zack at kde.org
Mon Jul 29 21:07:17 BST 2002
On Monday 29 July 2002 02:52, Doug Hanley wrote:
> On Sunday 28 July 2002 06:39 pm, Zack Rusin wrote:
> > On Sunday 28 July 2002 18:18, Doug Hanley wrote:
> > > Would you be willing to put some time into that?
> >
> > I'd love to! Using QTabBar is hardly any fun, since no matter what
> > we do it's still going to be a hack.
>
> Yeah, I Agree. Just one thing though... before, you said that we
> would create a new tab bar that doesn't inherit QTabBar. The problem
> with that is becuase we must use the function QTabWidget::setTabBar(
> QTabBar * ) it has to inherit QTabBar. Now, that raised another
> problem, even if we reimplement all the functions, we still can't
> access the private variables, so we would have to make new variables
> for our own use (although they would be very similar to the existing
> ones). That would result in a slight waste of memory, but its very
> marginal and there is only one of these objects per window at most.
Well, I though about writing our QTabWidget, it's not exactly a
complicated widget, it only places the tabbar somewhere in the window.
I have to say I don't really like the idea of inheriting QTabBar, what
we'll have is a widget that 'behaves-like' QTabBar but not 'IS-A'
QTabBar, meaning we don't really have a valid ground to be inheriting
from QTabBar, especially that in this or other way we have to replace
basically _all_ methods in QTabBar in order to prevent it from calling
private updateArrowButtons. Not only that we will still get messed up
behavior from tooltips - the class handling tooltips in tabbar is
internal to it and their placement could be all wrong if we decide to
remove the arrow buttons.
> Hmm... You know what, I've always found those arrow things kind of
> annoying anyway. I think we should adopt mozilla's policy and scale
> the tabs. Its much more usable in my opinion.
Yes, I like this behavior more too, but it will cause problems if we
inherit from QTabBar.
> So, do you want to just start with qtabbar.h and qtabbar.cpp and
> adjust from there? I think maybe i'll start some work on that now.
Let's divide, one of us takes TabBar the other TabWidget and we'll
connect.
> One problem though, I'll be gone for about 3 weeks starting tuesday
> (I'm seeing going to see The Who in NYC, woohoo!), so I probably wont
> have much time to work on this then. After that though, I'm ready as
> I'll ever be.
Oh, cool, email me privately when you'll come to NYC. I lived there for
a long time, now I live in Phily but come to NYC every two weeks or so,
to see my friends. Maybe we could meet.
Zack
--
Give me ambiguity or give me something else.
More information about the kfm-devel
mailing list