Advertisement
Guest User

Untitled

a guest
May 6th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. for (int j = colorList.size()-1; 0 <= j; --j) {
  2. if(QString::compare(colorList[j],color,Qt::CaseInsensitive) == 0){
  3. colorList.removeAt(j);
  4. }
  5. }
  6.  
  7.  
  8.  
  9. colorList << "#0000FF" << "#FF0000" << "#00FF00" << "#FFFF00"
  10. << "#000000" << "#FF8000" << "#8A4B08" << "#00FFFF"
  11. << "#FF00FF" << "#FFFFFF" << "#848484" << "#8A0868";
  12. foreach (destinationItem d, destinationsItemsXml) {
  13. qDebug() << d.color;
  14.  
  15. }
  16. qDebug() << colorList;
  17.  
  18. for (int i = 0; i < destinationsItemsXml.size(); ++i) {
  19.  
  20. for (int j = colorList.size()-1; 0 <= j; --j) {
  21. if(QString::compare(colorList[j], destinationsItemsXml[i].color,Qt::CaseInsensitive) == 0){
  22. colorList.removeAt(j);
  23. }
  24. }
  25.  
  26. }
  27.  
  28. qDebug() << colorList;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement