author | paule <paule> | 2007-01-13 07:42:23 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-13 07:42:23 (UTC) |
commit | a1360b0af73518d97ebe63ad3cd156cd8b57c8b5 (patch) (side-by-side diff) | |
tree | 2630d54134a775f48254624273a8b381e77e39c0 /noncore/tools/clock/clock.cpp | |
parent | b1075202780c1d807c9d9f5286a2ffa7714bae51 (diff) | |
download | opie-a1360b0af73518d97ebe63ad3cd156cd8b57c8b5.zip opie-a1360b0af73518d97ebe63ad3cd156cd8b57c8b5.tar.gz opie-a1360b0af73518d97ebe63ad3cd156cd8b57c8b5.tar.bz2 |
* Increase font size (fixes bug #1597)
* Improve usability of snooze function (fixes bug #1598)
* Fix stretched icon (fixes bug #1616)
Diffstat (limited to 'noncore/tools/clock/clock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/clock/clock.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
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 @@ -103,13 +103,18 @@ AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal, 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())); } + // // @@ -145,12 +150,4 @@ 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 |