Replaced 'ShowToolbarAction' with the predefined toggleViewAction(),
some work on the entropy collection dialog. git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@108 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -45,7 +45,9 @@ void WaitAnimationWidget::refreshAnimation(){
|
||||
float diff=CurAngle-i*0.16666667f;
|
||||
if(diff>0.5f)
|
||||
diff=1.0f-diff;
|
||||
CircSizes[i]=1.0+exp(-10.0f*diff*diff);
|
||||
if(diff<-0.5f)
|
||||
diff=1.0f+diff;
|
||||
CircSizes[i]=1.0+exp(-14.0f*diff*diff);
|
||||
}
|
||||
repaint();
|
||||
}
|
||||
@@ -53,8 +55,10 @@ void WaitAnimationWidget::refreshAnimation(){
|
||||
void WaitAnimationWidget::paintEvent(QPaintEvent* event){
|
||||
QPainter painter(this);
|
||||
painter.setRenderHints(QPainter::Antialiasing,true);
|
||||
painter.setBrush(QColor(255,255,255));
|
||||
painter.setPen(QColor(255,255,255));
|
||||
for(int i=0;i<6;i++){
|
||||
float d=CircSizes[i]*6;
|
||||
float d=CircSizes[i]*5.0;
|
||||
QRectF rect(CircPositions[i].x()-d/2,CircPositions[i].y()-d/2,d,d);
|
||||
painter.drawEllipse(rect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user