mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-30 02:56:44 +00:00 
			
		
		
		
	minor tooltip fixes
This commit is contained in:
		
							parent
							
								
									e30ade81be
								
							
						
					
					
						commit
						e76df5f4d3
					
				
					 1 changed files with 29 additions and 19 deletions
				
			
		|  | @ -252,28 +252,38 @@ CSVWidget::SceneToolTextureBrush::SceneToolTextureBrush (SceneToolbar *parent, c | |||
| 
 | ||||
| void CSVWidget::SceneToolTextureBrush::setButtonIcon (int brushShape) | ||||
| { | ||||
|     QString tooltip = "Brush settings <p>Currently selected: "; | ||||
|     if(brushShape == 0) | ||||
|     QString tooltip = "Change brush settings <p>Currently selected: "; | ||||
| 
 | ||||
|     switch (brushShape) | ||||
|     { | ||||
|         case 0: | ||||
| 
 | ||||
|             setIcon (QIcon (QPixmap (":scenetoolbar/brush-point"))); | ||||
|         tooltip += dynamic_cast<QString&> (mTextureBrushWindow->toolTipPoint); | ||||
|     } | ||||
|     if(brushShape == 1) | ||||
|     { | ||||
|             tooltip += mTextureBrushWindow->toolTipPoint; | ||||
|             break; | ||||
| 
 | ||||
|         case 1: | ||||
| 
 | ||||
|             setIcon (QIcon (QPixmap (":scenetoolbar/brush-square"))); | ||||
|         tooltip += dynamic_cast<QString&> (mTextureBrushWindow->toolTipSquare); | ||||
|     } | ||||
|     if(brushShape == 2) | ||||
|     { | ||||
|             tooltip += mTextureBrushWindow->toolTipSquare; | ||||
|             break; | ||||
| 
 | ||||
|         case 2: | ||||
| 
 | ||||
|             setIcon (QIcon (QPixmap (":scenetoolbar/brush-circle"))); | ||||
|         tooltip += dynamic_cast<QString&> (mTextureBrushWindow->toolTipCircle); | ||||
|     } | ||||
|     if(brushShape == 3) | ||||
|     { | ||||
|             tooltip += mTextureBrushWindow->toolTipCircle; | ||||
|             break; | ||||
| 
 | ||||
|         case 3: | ||||
| 
 | ||||
|             setIcon (QIcon (QPixmap (":scenetoolbar/brush-custom"))); | ||||
|         tooltip += dynamic_cast<QString&> (mTextureBrushWindow->toolTipCustom); | ||||
|             tooltip += mTextureBrushWindow->toolTipCustom; | ||||
|             break; | ||||
|     } | ||||
| 
 | ||||
|     tooltip += "<p>(right click to access of previously used brush settings)"; | ||||
| 
 | ||||
| 
 | ||||
|     CSMWorld::IdCollection<CSMWorld::LandTexture>& landtexturesCollection = mDocument.getData().getLandTextures(); | ||||
| 
 | ||||
|     int landTextureFilename = landtexturesCollection.findColumnIndex(CSMWorld::Columns::ColumnId_Texture); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue