[Digikam-devel] Re: storing KConfig in sidebar broken
Marcel Wiesweg
marcel.wiesweg at gmx.de
Tue Dec 14 09:32:15 GMT 2010
> Ah... and it do not use QObject name as "Image Properties SideBar" + name ?
>
> This is that i have implemented before Qt4 model view port.
The config group name is hardcoded in several places:
grep '"Image Properties SideBar"' -rl . | grep -v svn
./core/libs/imageproperties/imagepropertiesversionstab.cpp
./core/libs/imageproperties/imagepropertiesmetadatatab.cpp
./core/libs/imageproperties/imagedescedittab.cpp
./core/libs/imageproperties/imagepropertiesgpstab.cpp
./core/libs/imageproperties/imagepropertiescolorstab.cpp
./core/libs/widgets/metadata/metadatapanel.cpp
The solution would be a central place in ImagePropertiesSideBarDB which
creates the KConfigGroup and passes it to all tabs' readConfig/writeConfig.
Alternatively (and better), porting to StateSavingObject?
Marcel
More information about the Digikam-devel
mailing list