Changeset 13931


Ignore:
Timestamp:
Feb 2, 2013, 3:51:10 AM (8 years ago)
Author:
jordan
Message:

(qt) remove console messages that were committed in r13930

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.cc

    r13930 r13931  
    187187}
    188188
    189 #include <iostream>
    190 
    191189std::pair<int,int>
    192190FileTreeItem :: update (const QString& name,
     
    197195{
    198196  int changed_count = 0;
    199   int changed_fields[3];
     197  int changed_columns[3];
    200198
    201199  if (myName != name)
     
    205203
    206204      myName = name;
    207       changed_fields[changed_count++] = COL_NAME;
     205      changed_columns[changed_count++] = COL_NAME;
    208206    }
    209207
     
    218216            {
    219217              myIsWanted = wanted;
    220               changed_fields[changed_count++] = COL_WANTED;
     218              changed_columns[changed_count++] = COL_WANTED;
    221219            }
    222220
     
    224222            {
    225223              myPriority = priority;
    226               changed_fields[changed_count++] = COL_PRIORITY;
     224              changed_columns[changed_count++] = COL_PRIORITY;
    227225            }
    228226        }
     
    232230  if (changed_count > 0)
    233231    {
    234       std::sort (changed_fields, changed_fields+changed_count);
    235       changed.first = changed_fields[0];
    236       changed.second = changed_fields [changed_count-1];
    237       std::cerr << "changed.first " << changed.first << " changed.second " << changed.second << std::endl;
     232      std::sort (changed_columns, changed_columns+changed_count);
     233      changed.first = changed_columns[0];
     234      changed.second = changed_columns[changed_count-1];
    238235    }
    239236  return changed;
Note: See TracChangeset for help on using the changeset viewer.