mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	ToolTipItem class improvements
* Initialize every ToolTipItem variable member in initialize list. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									9b84f82160
								
							
						
					
					
						commit
						8bb5cd6012
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -135,12 +135,16 @@ void ToolTipItem::expand() | |||
| 	status = EXPANDED; | ||||
| } | ||||
| 
 | ||||
| ToolTipItem::ToolTipItem(QGraphicsItem* parent): QGraphicsPathItem(parent), background(0) | ||||
| ToolTipItem::ToolTipItem(QGraphicsItem* parent) : QGraphicsPathItem(parent), | ||||
| 	background(0), | ||||
| 	separator(new QGraphicsLineItem(this)), | ||||
| 	title(new QGraphicsSimpleTextItem(tr("Information"), this)), | ||||
| 	status(COLLAPSED), | ||||
| 	timeAxis(0) | ||||
| { | ||||
| 	title = new QGraphicsSimpleTextItem(tr("Information"), this); | ||||
| 	separator = new QGraphicsLineItem(this); | ||||
| 	memset(&pInfo, 0, sizeof(pInfo)); | ||||
| 
 | ||||
| 	setFlags(ItemIgnoresTransformations | ItemIsMovable | ItemClipsChildrenToShape); | ||||
| 	status = COLLAPSED; | ||||
| 	updateTitlePosition(); | ||||
| 	setZValue(99); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue