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

List:       kde-devel
Subject:    adjusting width of KSelectAction
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2009-03-03 16:08:33
Message-ID: fbfc85740903030808g6a5e2d9g6ffa4f3baa1cc9bf () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi everyone,

Is there a way to auto-adjust the width of the combobox that represents a
KSelectAction in a toolbar? I do dynamic updates of the action list, and the
combobox gets really squeezed. In KDE3, I figured out a bad hack to iterate
over the action containers, cast to a toolbar, find the combobox, then reset
the combobox font. That worked, although I felt dirty.

But the same hack doesn't work, as far as I can tell, in KDE4. Can anyone
suggest a sane way of doing it now, or are dynamic actions not really
intended to be in a combobox? I could always use a popupmenu, I guess.

The one thing I can think that I have not tried yet, is to subclass
KSelectAction, which would give me access to the createdWidgets() method. I
could use that to iterate and find the combobox, then do the setFont(font())
trick again.

Thanks,
Robby

[Attachment #5 (text/html)]

Hi everyone,<br><br>Is there a way to auto-adjust the width of the combobox=
 that represents a KSelectAction in a toolbar? I do dynamic updates of the =
action list, and the combobox gets really squeezed. In KDE3, I figured out =
a bad hack to iterate over the action containers, cast to a toolbar, find t=
he combobox, then reset the combobox font. That worked, although I felt dir=
ty.<br>
<br>But the same hack doesn&#39;t work, as far as I can tell, in KDE4. Can =
anyone suggest a sane way of doing it now, or are dynamic actions not reall=
y intended to be in a combobox? I could always use a popupmenu, I guess.<br=
>
<br>The one thing I can think that I have not tried yet, is to subclass KSe=
lectAction, which would give me access to the createdWidgets() method. I co=
uld use that to iterate and find the combobox, then do the setFont(font()) =
trick again.<br>
<br>Thanks,<br>Robby<br>


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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