comparison data/model/SparseModel.h @ 931:df82da55e86a warnfix_no_size_t

Disambiguate signals
author Chris Cannam
date Tue, 17 Jun 2014 15:24:55 +0100
parents 06579b8ffb7b
children 9f526ddc6165
comparison
equal deleted inserted replaced
930:06579b8ffb7b 931:df82da55e86a
716 // notifyOnAdd as an option rather than a necessity (the 716 // notifyOnAdd as an option rather than a necessity (the
717 // alternative is to notify on setCompletion). 717 // alternative is to notify on setCompletion).
718 718
719 if (m_notifyOnAdd) { 719 if (m_notifyOnAdd) {
720 m_rows.clear(); //!!! inefficient 720 m_rows.clear(); //!!! inefficient
721 emit modelChanged(point.frame, point.frame + m_resolution); 721 emit modelChangedWithin(point.frame, point.frame + m_resolution);
722 } else { 722 } else {
723 if (m_sinceLastNotifyMin == -1 || 723 if (m_sinceLastNotifyMin == -1 ||
724 point.frame < m_sinceLastNotifyMin) { 724 point.frame < m_sinceLastNotifyMin) {
725 m_sinceLastNotifyMin = point.frame; 725 m_sinceLastNotifyMin = point.frame;
726 } 726 }
751 } 751 }
752 } 752 }
753 // std::cout << "SparseOneDimensionalModel: emit modelChanged(" 753 // std::cout << "SparseOneDimensionalModel: emit modelChanged("
754 // << point.frame << ")" << std::endl; 754 // << point.frame << ")" << std::endl;
755 m_rows.clear(); //!!! inefficient 755 m_rows.clear(); //!!! inefficient
756 emit modelChanged(point.frame, point.frame + m_resolution); 756 emit modelChangedWithin(point.frame, point.frame + m_resolution);
757 } 757 }
758 758
759 template <typename PointType> 759 template <typename PointType>
760 void 760 void
761 SparseModel<PointType>::setCompletion(int completion, bool update) 761 SparseModel<PointType>::setCompletion(int completion, bool update)
779 779
780 if (update && 780 if (update &&
781 m_sinceLastNotifyMin >= 0 && 781 m_sinceLastNotifyMin >= 0 &&
782 m_sinceLastNotifyMax >= 0) { 782 m_sinceLastNotifyMax >= 0) {
783 m_rows.clear(); //!!! inefficient 783 m_rows.clear(); //!!! inefficient
784 emit modelChanged(m_sinceLastNotifyMin, m_sinceLastNotifyMax); 784 emit modelChangedWithin(m_sinceLastNotifyMin, m_sinceLastNotifyMax);
785 m_sinceLastNotifyMin = m_sinceLastNotifyMax = -1; 785 m_sinceLastNotifyMin = m_sinceLastNotifyMax = -1;
786 } else { 786 } else {
787 emit completionChanged(); 787 emit completionChanged();
788 } 788 }
789 } else { 789 } else {