File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ bool ConfigIO::readLine(const QString &line,
106106 QString qname = name.trimmed ();
107107 QString qvalue = value.trimmed ();
108108
109- QRegExp re (" \\ d*" );
110- QRegExp re_float (" [+-]?([0-9]*[.])? [0-9]+" );
109+ // QRegExp re("\\d*");
110+ QRegExp re_float (" [+-]?([0-9]*[.])[0-9]+" );
111111
112112 if (qvalue == " true" )
113113 {
@@ -117,10 +117,6 @@ bool ConfigIO::readLine(const QString &line,
117117 {
118118 out = QPair<QString, QVariant>(qname, false );
119119 }
120- else if (re.exactMatch (qvalue))
121- {
122- out = QPair<QString, QVariant>(qname, qvalue.toInt ());
123- }
124120 else if (re_float.exactMatch (qvalue))
125121 {
126122 out = QPair<QString, QVariant>(qname, qvalue.toFloat ());
@@ -131,4 +127,4 @@ bool ConfigIO::readLine(const QString &line,
131127 }
132128
133129 return true ;
134- }
130+ }
You can’t perform that action at this time.
0 commit comments