[Kde-games-devel] Tileset format for KMahjongg
Mauricio Piacentini
mauricio at tabuleiro.com
Fri Nov 17 22:04:53 CET 2006
> For reading the desktop files in the code, you can use KSimpleConfig:
>
> KSimpleConfig themeFile(themeFileName);
> themeFile.setGroup("KDEGamesTileset");
>
> QString themeName = themeFile.readEntry("Name"); // Returns translated data
> int themeTileWidth = themeFile.readNumEntry("TileWidth");
Seems simpler than the XML parsing I had already implemented in
KMahjongg. Well, at least I gained experience :)
Regards,
Mauricio
More information about the kde-games-devel
mailing list