Bug 206310

Summary: KToolBar::setToolButtonStyle() will change only to Qt::ToolButtonTextBesideIcon
Product: [Unmaintained] kdelibs Reporter: David Boosalis <david.boosalis>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: cfeck, finex, kfunk
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Boosalis 2009-09-05 01:19:57 UTC
Version:            (using Devel)
Compiler:          gcc 4.3 32Bite
OS:                Linux
Installed from:    Compiled sources

When trying to set the button style. I find that KToolBar::setToolButtonStyle() does not work.  It always sets the style to Qt:;ToolButtonTextBesideIcon no matter what the argument is.  This may be a QToolBar bug.  I am using KDE from SVN and qt-kde.

Note QMainWindow::setToolButtonStyle fails in the same way
Comment 1 Kevin Funk 2011-01-07 17:03:20 UTC
Just stumbled upon this bug, closing it, as:
a) not within the scope of KToolBar as setToolButtonStyle() is not overwritten by it.
b) probably outdated and fixed in Qt
Comment 2 Christoph Feck 2011-01-07 19:17:04 UTC
> not within the scope of KToolBar as setToolButtonStyle() is not overwritten by it.

It is, see KToolBar::Private::applyCurrentSettings().
Comment 3 Kevin Funk 2011-01-07 19:45:31 UTC
Sorry, that was unclear. What I wanted to say: KToolBar doesnt reimplement setToolButtonStyle, so we're using Qt's own implementation here.