diff -r 67cfa6e6b863 -r d42881c25fb6 api.cpp --- a/api.cpp Tue Oct 24 15:36:38 2006 +0000 +++ b/api.cpp Thu Nov 16 10:07:11 2006 +0000 @@ -197,19 +197,19 @@ // a variable later QString r; ok=true; - /* - QRegExp re("\"(.*)\""); - int pos=re.search (paramList[index]); - if (pos>=0) - r=re.cap (1); - else - r=""; - */ - if (paramList[index]=="true") + QString p=paramList[index]; + if (p=="true" || p=="1") return true; - else if (paramList[index]=="false") + else if (p=="false" || p=="0") return false; ok=false; return ok; } +QColor API::parColor(bool &ok,const int &index) +{ + // return the QColor at index + ok=true; + return QColor (paramList[index]); +} +