[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] Tileset format for KMahjongg
From: Mauricio Piacentini <mauricio () tabuleiro ! com>
Date: 2006-11-17 21:04:53
Message-ID: 455E23F5.1050808 () tabuleiro ! com
[Download RAW message or body]
> 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
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic