[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KToolBar...
From: Kalle Dalheimer <kalle () dalheimer ! hh ! eunet ! de>
Date: 1998-08-07 13:36:02
[Download RAW message or body]
Sven Radej:
>On Fri, 07 Aug 1998, Kalle Dalheimer wrote:
>>Sven Radej:
>>>Hi,
>>>
>>>New things:
>>>
>>> int insertButton(const QPixmap& pixmap, int id, QPopupMenu *popup,
>>> bool enabled, const char *_text, int index=-1);
>>>
>>>This inserts a button with popupmenu. /* If button is in toolbar a */
>>>A small trialngle will be drawn. You have to connect to popup's signals.
>>>The signals pressed, released or clikced are NOT emmited by this button
>>>(see setDelayedPopup for that).
>>>You can add custom popups which inherit QPopupMenu to get popups
>>>with tables, drawings etc. Just don't fiddle with events there.
>>
>>Depending on what you want to provide as choices in the menu, you might also
>>want to use my class QKBrowseBox, which is like a multi-column popup menu. I
>>don't know how you can integrate it here, but that should not be much of a
>>problem. You can find the class in the KLyX sources, and I can check it into
>>kdeui if someone wants.
>Yes I saw QKBrowseBox; Wouldn't it be possible to derive it from
>QPopupMenu, so one could insert such QBrowseBox both in menu bar and
>toolbar. QPopupMenu has a load of virtual functions. I'll see what can
>be done.
I am sure that could be done. I mainly wrote it as a demonstration widget for
my Qt book.
Kalle
--
Kalle Dalheimer Contract programming for Unix
kalle@dalheimer.de Technical writing
kalle@kde.org Technical editing
kalle@oreilly.de KDE Developer (MFCH)
mdalheimer@acm.org It's open, it's source, it runs - must be KDE!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic