PushButton and ButtonGroups
Aaron J. Seigo
aseigo at kde.org
Wed Feb 3 21:59:36 CET 2010
On February 3, 2010, alanm wrote:
> I also tried buttongroup.addButton(my_plasma_pushbutton.nativeWidget()),
> but go the same result.
that sounds like an error in the bindings. Plasma::PushButton::nativeWidget()
returns a KPushButton which IsA QAbstractButton.
anyways, yes, we should provide nicer support for this. i'm not sure a
Plasma::ButtonGroup is "the answer" though; perhaps something more like a
addToButtonGroup(QButtonGroup *buttonGroup) in each of Plasma::PushButton,
ToolButton, RadioButton and Checkbox.
it's not exactly the best object oriented design, but it would prevent a whole
new class in libplasma and would allow the usage of the QButtonGroup.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
More information about the Plasma-devel
mailing list