summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp
index ecbf12f..4d92683 100644
--- a/noncore/tools/clock/clock.cpp
+++ b/noncore/tools/clock/clock.cpp
@@ -510,25 +510,27 @@ void Clock::timerEvent( QTimerEvent *e )
510 } 510 }
511 else 511 else
512 { 512 {
513 stop = 0; 513 stop = 0;
514 killTimer( e->timerId() ); 514 killTimer( e->timerId() );
515 clearTimer(); 515 clearTimer();
516 setCaption( tr( "Clock: Alarm was missed." ) ); 516 setCaption( tr( "Clock: Alarm was missed." ) );
517 } 517 }
518} 518}
519 519
520AnalogClock::AnalogClock(QWidget * parent, const char * name) : QFrame( parent, name ), clear(true) 520AnalogClock::AnalogClock(QWidget * parent, const char * name) : QFrame( parent, name ), clear(true)
521{ 521{
522 bg = Resource::loadPixmap("clock/bg"); 522 QWidget *d = QApplication::desktop();
523 if(d->width() <= 240)
524 bg = Resource::loadPixmap("clock/bg");
523} 525}
524 526
525QSizePolicy AnalogClock::sizePolicy() const 527QSizePolicy AnalogClock::sizePolicy() const
526{ 528{
527 return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); 529 return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
528} 530}
529 531
530void AnalogClock::drawContents( QPainter *p ) 532void AnalogClock::drawContents( QPainter *p )
531{ 533{
532 QRect r = contentsRect(); 534 QRect r = contentsRect();
533 QRect fr; 535 QRect fr;
534 536