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:
tarek_saidi
2006-10-16 20:09:14 +00:00
parent c991307ef8
commit 83d561d3a4
5 changed files with 54 additions and 72 deletions

View File

@@ -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);