Yes, but as he said, he can't change the ini file...
He will have to change the way QSettings deals with ',' ';' and '=' mamely, only stop on \r\n.
Yes, but as he said, he can't change the ini file...
He will have to change the way QSettings deals with ',' ';' and '=' mamely, only stop on \r\n.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Probably he have to use QSettings::registerFormat() in order to create a "special" INI parser.
QSettings has not virtual methods or properties to access the INI parser
Last edited by mcosta; 20th July 2011 at 16:41. Reason: updated contents
A camel can go 14 days without drink,
I can't!!!
Yes, this looks like a good way to go.Probably he have to use QSettings::registerFormat() in order to create a "special" INI parser
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
It looks like values that are separated by "," are returned as a QStringList, and not a QString by QSettings.
Cast the return value to a QStringList and manipulate the value that way.
Bookmarks