summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-03-30 10:05:40 (UTC)
committer harlekin <harlekin>2003-03-30 10:05:40 (UTC)
commit87ba3646367397e149979a8477a33239cb341e99 (patch) (unidiff)
treeb23aca796a97cabe9599fdaab7ad2b9ec456b504
parenta4c497f3c9935fa393af93899739a0a795c456a8 (diff)
downloadopie-87ba3646367397e149979a8477a33239cb341e99.zip
opie-87ba3646367397e149979a8477a33239cb341e99.tar.gz
opie-87ba3646367397e149979a8477a33239cb341e99.tar.bz2
bigger animation to be more distinguish compared to desktop icons, also new animation
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
@@ -37,13 +37,13 @@ OWait::OWait(QWidget *parent, const char* msg, bool dispIcon )
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}
@@ -52,17 +52,17 @@ void 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();
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