mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Plot the events on top of the profile.
Changes the ZValue of the event items so they are plotted on top of the profile, instead of being hidden on some. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									edad8712b9
								
							
						
					
					
						commit
						63c1a1b3e9
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -324,6 +324,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
 | 
				
			||||||
		item->setVerticalAxis(profileYAxis);
 | 
							item->setVerticalAxis(profileYAxis);
 | 
				
			||||||
		item->setModel(dataModel);
 | 
							item->setModel(dataModel);
 | 
				
			||||||
		item->setEvent(event);
 | 
							item->setEvent(event);
 | 
				
			||||||
 | 
							item->setZValue(2);
 | 
				
			||||||
		scene()->addItem(item);
 | 
							scene()->addItem(item);
 | 
				
			||||||
		eventItems.push_back(item);
 | 
							eventItems.push_back(item);
 | 
				
			||||||
		event = event->next;
 | 
							event = event->next;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue