changes to progressrect
This commit is contained in:
		
							parent
							
								
									52333f5d28
								
							
						
					
					
						commit
						db59c73ed2
					
				| 
						 | 
				
			
			@ -7,4 +7,7 @@ ProgressBar < UIProgressBar
 | 
			
		|||
 | 
			
		||||
ProgressRect < UIProgressRect
 | 
			
		||||
  anchors.fill: parent
 | 
			
		||||
  background-color: #00000044
 | 
			
		||||
  phantom: true
 | 
			
		||||
  color: white
 | 
			
		||||
  background-color: #00000088
 | 
			
		||||
  font: verdana-11px-rounded
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,6 +75,11 @@ void UIProgressRect::drawSelf(Fw::DrawPane drawPane)
 | 
			
		|||
        Point var = Point(std::max(m_percent - 87.5, 0.0) * (drawRect.horizontalCenter() - drawRect.left()) / 12.5, 0);
 | 
			
		||||
        g_painter->drawFilledTriangle(drawRect.center(), drawRect.topCenter(), drawRect.topLeft() + var);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    drawImage(m_rect);
 | 
			
		||||
    drawBorder(m_rect);
 | 
			
		||||
    drawIcon(m_rect);
 | 
			
		||||
    drawText(m_rect);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void UIProgressRect::setPercent(float percent)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue