mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Implement the modelDataChanged to repopulate the widget on Statistics
The modelDataChanged method will remove all items and recreate everything *right* now we will never use it, because we are not triggering any changes on the model, but simply deleting and recreating it everytime we open the dialog. to be changed in the future. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									4a6a9a6706
								
							
						
					
					
						commit
						18da0b1911
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -26,7 +26,10 @@ void YearlyStatisticsWidget::modelRowsInserted(const QModelIndex &index, int fir | ||||||
| 
 | 
 | ||||||
| void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight) | void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight) | ||||||
| { | { | ||||||
| 	// stub
 | 	Q_UNUSED(topLeft); | ||||||
|  | 	Q_UNUSED(bottomRight); | ||||||
|  | 	scene()->clear(); | ||||||
|  | 	modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void YearlyStatisticsWidget::resizeEvent(QResizeEvent *event) | void YearlyStatisticsWidget::resizeEvent(QResizeEvent *event) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue