From a1360b0af73518d97ebe63ad3cd156cd8b57c8b5 Mon Sep 17 00:00:00 2001 From: paule Date: Sat, 13 Jan 2007 07:42:23 +0000 Subject: * Increase font size (fixes bug #1597) * Improve usability of snooze function (fixes bug #1598) * Fix stretched icon (fixes bug #1616) --- (limited to 'noncore/tools') diff --git a/noncore/tools/clock/alarmdlgbase.ui b/noncore/tools/clock/alarmdlgbase.ui index 63759f3..944f532 100644 --- a/noncore/tools/clock/alarmdlgbase.ui +++ b/noncore/tools/clock/alarmdlgbase.ui @@ -11,8 +11,8 @@ 0 0 - 124 - 92 + 199 + 243 @@ -25,7 +25,7 @@ margin - 6 + 11 spacing @@ -54,7 +54,7 @@ scaledContents - true + false @@ -88,6 +88,10 @@ text TextLabel1 + + scaledContents + false + @@ -124,6 +128,10 @@ snoozeTime + caption + + + suffix mins @@ -135,6 +143,13 @@ lineStep 5 + + value + 5 + + + layoutMargin + @@ -142,9 +157,476 @@ QPushButton name + cmdSnooze + + + minimumSize + + 0 + 100 + + + + palette + + + + 0 + 0 + 0 + + + 255 + 128 + 128 + + + 255 + 255 + 255 + + + 255 + 191 + 191 + + + 127 + 64 + 64 + + + 170 + 85 + 85 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + 128 + 128 + 128 + + + 255 + 128 + 128 + + + 255 + 255 + 255 + + + 255 + 166 + 166 + + + 127 + 64 + 64 + + + 170 + 85 + 85 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 128 + 128 + 128 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + 0 + 0 + 0 + + + 255 + 128 + 128 + + + 255 + 255 + 255 + + + 255 + 166 + 166 + + + 127 + 64 + 64 + + + 170 + 85 + 85 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + + text + Snooze + + + + QPushButton + + name cmdOk + minimumSize + + 0 + 32 + + + + palette + + + + 0 + 0 + 0 + + + 192 + 255 + 192 + + + 255 + 255 + 255 + + + 223 + 255 + 223 + + + 96 + 127 + 96 + + + 128 + 170 + 128 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + 128 + 128 + 128 + + + 192 + 255 + 192 + + + 255 + 255 + 255 + + + 230 + 255 + 230 + + + 96 + 127 + 96 + + + 128 + 170 + 128 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 128 + 128 + 128 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + 0 + 0 + 0 + + + 192 + 255 + 192 + + + 255 + 255 + 255 + + + 230 + 255 + 230 + + + 96 + 127 + 96 + + + 128 + 170 + 128 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 0 + 0 + 0 + + + 255 + 255 + 255 + + + 238 + 238 + 230 + + + 0 + 0 + 0 + + + 255 + 221 + 118 + + + 0 + 0 + 0 + + + + + text Close diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index 9b324e0..325a307 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp @@ -102,15 +102,20 @@ AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal, const QString &txt) : AlarmDlgBase(parent, name, modal) { + // Increase font size to make it a little more readable + QFont f(font()); + f.setPointSize((int)(f.pointSize() * 1.7)); + setFont(f); + setCaption( tr("Clock") ); pixmap->setPixmap( Opie::Core::OResource::loadPixmap("clock/alarmbell") ); alarmDlgLabel->setText(txt); - connect(snoozeTime, SIGNAL(valueChanged(int)), this, - SLOT(changePrompt(int))); - connect(cmdOk, SIGNAL(clicked()), this, SLOT(checkSnooze())); + connect(cmdSnooze, SIGNAL(clicked()), this, SLOT(checkSnooze())); + connect(cmdOk, SIGNAL(clicked()), this, SLOT(accept())); } + // // // @@ -144,14 +149,6 @@ AlarmDlg::checkSnooze(void) -void -AlarmDlg::changePrompt(int mins) -{ - cmdOk->setText(mins > 0 ? tr("Snooze") : tr("Close") ); -} - - - Clock::Clock( QWidget * parent, const char *, WFlags f ) : ClockBase( parent, "clock", f ), swatch_splitms(99), init(FALSE) // No tr { diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h index c063a9b..10bbfef 100644 --- a/noncore/tools/clock/clock.h +++ b/noncore/tools/clock/clock.h @@ -44,7 +44,6 @@ public: private slots: void checkSnooze(void); - void changePrompt(int minutes); }; class Clock : public ClockBase -- cgit v0.9.0.2