Bug 238878 - KToolbar need to have fixed size action
Summary: KToolbar need to have fixed size action
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 13:15 UTC by Cédric Bellegarde
Modified: 2013-10-30 10:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Bellegarde 2010-05-26 13:15:19 UTC
Version:           unspecified (using Devel) 
OS:                Linux

http://mail.kde.org/pipermail/rekonq/2010-May/001287.html

I've made a patch for rekonq that try to emulate a fixed size button in a ktoolbar (text alongside icons).

It's a hack and rekonq dev want this to be fixed in kdelibs.

So, please add an option to tell ktoolbar to have button with a fixed size when switching between kactions...

Exemple:

Current:
<@ Stop>
<@ Reloading>

Wanted:
<@ Stop       >
<@Reloading>

Reproducible: Didn't try
Comment 1 Christoph Feck 2010-05-26 15:21:54 UTC
Since KAction is a QWidgetAction, you can have any widget inside it, even one that enforces specific size hints or limits.

From kdelibs perspective, I guess this is a WONTFIX.
Comment 2 David Faure 2010-10-05 01:23:29 UTC
For the record: this could be fixed by KDualAction as proposed on kde-core-devel, if done properly.
Comment 3 Christoph Feck 2010-11-12 19:47:39 UTC
Reopen since we now have KDualAction. It should be possible to compute the size hint from both actions. Aurélien?
Comment 4 Aurelien Gateau 2010-11-12 22:39:33 UTC
KDualAction has the necessary information to compute the widest button, but right now it does not create buttons itself. Are you thinking about catching the created widget and setting a fixed width on it?