~ubuntu-branches/ubuntu/lucid/skrooge/lucid

« back to all changes in this revision

Viewing changes to skgbasegui/skgobjectmodelbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-07-28 15:38:43 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090728153843-91b74m0vcam50krt
Tags: 0.2.9-0ubuntu1
* New upstream release
* Added kubuntu_01_cmake_fix.patch:
  Fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
{
193
193
        if (!isResetRealyNeeded) return;
194
194
        SKGTRACEIN(1, "SKGObjectModelBase::refresh");
 
195
        emit beforeReset();
195
196
        {
196
197
                _SKGTRACEIN(10, "QAbstractItemModel::refresh-remove");
197
198
                clear();
285
286
                        QAbstractItemModel::reset();
286
287
                }
287
288
        }
 
289
        emit afterReset();
288
290
}
289
291
 
290
292
int SKGObjectModelBase::rowCount(const QModelIndex &parent ) const
504
506
                                if (shortDate!=fancyDate) return shortDate;
505
507
                        }
506
508
                }
 
509
                IFSKGTRACEL(1) {
 
510
                        SKGObjectBase* obj = getObjectPointer(index);
 
511
                        if (obj) {
 
512
                                return obj->getUniqueID();
 
513
                        }
 
514
                }
507
515
                break;
508
516
        }
509
517
        default : {}
670
678
                             nb=modifications.count();
671
679
                     }
672
680
 
673
 
                     if (1==1 || iTableName=="node" || iTableName=="doctransaction" || getTable()=="v_operation_consolidated" || iIdTransaction==0 || nb>50) { //TODO: optimization*/
 
681
                     if (1==1 || iTableName=="node" || iTableName=="doctransaction" || getTable()=="v_operation_consolidated" || iIdTransaction==0 || nb>50) {
 
682
                */
674
683
                //Full refresh
675
684
                isResetRealyNeeded=true;
676
685