Ignore:
Timestamp:
01/28/10 15:47:21 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
83020cd
Parents:
eb21333
Message:

some performance optimizations

  • favourities reloaded only if they have really changed
  • otherwise only event in the question is updated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/treeview.cpp

    reb21333 r872aeaa  
    6565                }
    6666
    67                 // since the Favourite icon has changed, update TreeViews accordingly
    68                 // all TreeViews have to listen on this signal
    69                 emit(eventHasChanged(event.id()));
    70 
    7167                // have to emit 'eventHasChanged' signal on all events in conflict
    7268                for(int i=0; i<conflicts.count(); i++)
    7369                    emit(eventHasChanged(conflicts[i].id()));
     70               
     71                // since the Favourite icon has changed, update TreeViews accordingly
     72                // all TreeViews have to listen on this signal
     73                emit(eventHasChanged(event.id(),true));
    7474
    7575                handled = true;
Note: See TracChangeset for help on using the changeset viewer.