summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -516,13 +516,15 @@ void Clock::timerEvent( QTimerEvent *e )
setCaption( tr( "Clock: Alarm was missed." ) );
}
}
AnalogClock::AnalogClock(QWidget * parent, const char * name) : QFrame( parent, name ), clear(true)
{
- bg = Resource::loadPixmap("clock/bg");
+ QWidget *d = QApplication::desktop();
+ if(d->width() <= 240)
+ bg = Resource::loadPixmap("clock/bg");
}
QSizePolicy AnalogClock::sizePolicy() const
{
return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
}