Diffstat (limited to 'noncore/tools/clock/clock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/clock/clock.cpp | 4 |
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 | |||
@@ -518,9 +518,11 @@ void Clock::timerEvent( QTimerEvent *e ) | |||
518 | } | 518 | } |
519 | 519 | ||
520 | AnalogClock::AnalogClock(QWidget * parent, const char * name) : QFrame( parent, name ), clear(true) | 520 | AnalogClock::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 | ||
525 | QSizePolicy AnalogClock::sizePolicy() const | 527 | QSizePolicy AnalogClock::sizePolicy() const |
526 | { | 528 | { |