From 3e59fa6940ec44c91b43843665aeb75f81af6ed2 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 10 Jan 2004 22:56:33 +0000 Subject: dont show background face for large screens, as it doesnt fit --- 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 @@ -519,7 +519,9 @@ void Clock::timerEvent( QTimerEvent *e ) 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 -- cgit v0.9.0.2