KConfigDialogManager and QButtonGroup
Albert Astals Cid
aacid at kde.org
Tue May 2 09:30:04 UTC 2017
El dilluns, 1 de maig de 2017, a les 20:31:28 CEST, Martin Koller va escriure:
> Hi,
>
> trying to fix https://bugs.kde.org/show_bug.cgi?id=378930
>
> I see that the mboxresource has a configuration dialog which uses
> KConfigDialogManager to handle the settings, but it has a QGroupBox widget
> holding QRadioButtons, which represent one setting (e.g. one of 2 possible
> compaction methods).
>
> In the .ui file, the QGroupBox(!) has the name kcfg_CompactFrequency
> but I assume the bug lies in the fact that this stems from Qt4 days, where
> the groupBox did also manage the buttons, whereby now you need a
> QButtonGroup class.
>
> Am I correct and if so, what needs to be changed that KConfigDialogManager
> works again with this radio buttons ?
> Is KConfigDialogManager designed so that it can work with a QButtonGroup and
> a set of radio buttons ?
Yes, see
https://cgit.kde.org/kconfigwidgets.git/tree/src/kconfigdialogmanager.cpp#n202
Cheers,
Albert
More information about the Kde-frameworks-devel
mailing list