diff -r 67cfa6e6b863 -r 7ced3733ba60 api.cpp --- a/api.cpp Tue Oct 24 15:36:38 2006 +0000 +++ b/api.cpp Mon Oct 30 12:39:37 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]); +} +