summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/owait.cpp6
-rw-r--r--pics/BigBusy.pngbin7789 -> 13564 bytes
2 files changed, 3 insertions, 3 deletions
diff --git a/libopie/owait.cpp b/libopie/owait.cpp
index ae25d7a..c7c4445 100644
--- a/libopie/owait.cpp
+++ b/libopie/owait.cpp
@@ -31,44 +31,44 @@ static int frame = 0;
31OWait::OWait(QWidget *parent, const char* msg, bool dispIcon ) 31OWait::OWait(QWidget *parent, const char* msg, bool dispIcon )
32 :QDialog(parent, QObject::tr("Wait"), TRUE,WStyle_Customize) { 32 :QDialog(parent, QObject::tr("Wait"), TRUE,WStyle_Customize) {
33 33
34 QHBoxLayout *hbox = new QHBoxLayout( this ); 34 QHBoxLayout *hbox = new QHBoxLayout( this );
35 35
36 m_lb = new QLabel( this ); 36 m_lb = new QLabel( this );
37 m_lb->setBackgroundMode ( NoBackground ); 37 m_lb->setBackgroundMode ( NoBackground );
38 38
39 hbox->addWidget( m_lb ); 39 hbox->addWidget( m_lb );
40 hbox->activate(); 40 hbox->activate();
41 41
42 m_pix = Resource::loadPixmap( "BigBusy" ); 42 m_pix = Resource::loadPixmap( "BigBusy" );
43 resize( 32, 32 ); 43 resize( 48, 48 );
44 44
45 m_timerLength = 10; 45 m_timerLength = 10;
46 46
47 m_waitTimer = new QTimer( this ); 47 m_waitTimer = new QTimer( this );
48 connect( m_waitTimer, SIGNAL( timeout() ), this, SLOT( hide() ) ); 48 connect( m_waitTimer, SIGNAL( timeout() ), this, SLOT( hide() ) );
49} 49}
50 50
51void OWait::timerEvent( QTimerEvent * ) { 51void OWait::timerEvent( QTimerEvent * ) {
52 frame = (++frame) % 3; 52 frame = (++frame) % 3;
53 repaint(); 53 repaint();
54} 54}
55 55
56void OWait::paintEvent( QPaintEvent * ) { 56void OWait::paintEvent( QPaintEvent * ) {
57 QPainter p( m_lb ); 57 QPainter p( m_lb );
58 p.drawPixmap( 0, 0, m_pix, 32 * frame, 0, 32, 32 ); 58 p.drawPixmap( 0, 0, m_pix, 48 * frame, 0, 48, 48 );
59} 59}
60 60
61void OWait::show() { 61void OWait::show() {
62 startTimer( 500 ); 62 startTimer( 300 );
63 m_waitTimer->start( m_timerLength * 1000, true ); 63 m_waitTimer->start( m_timerLength * 1000, true );
64 QDialog::show(); 64 QDialog::show();
65} 65}
66 66
67void OWait::hide() { 67void OWait::hide() {
68 killTimers(); 68 killTimers();
69 m_waitTimer->stop(); 69 m_waitTimer->stop();
70 frame = 0; 70 frame = 0;
71 QDialog::hide(); 71 QDialog::hide();
72} 72}
73 73
74void OWait::setTimerLength( int length ) { 74void OWait::setTimerLength( int length ) {
diff --git a/pics/BigBusy.png b/pics/BigBusy.png
index d2ebb25..2dae71e 100644
--- a/pics/BigBusy.png
+++ b/pics/BigBusy.png
Binary files differ