summaryrefslogtreecommitdiff
path: root/noncore/tools/clock/clock.cpp
authorpaule <paule>2007-01-13 07:42:23 (UTC)
committer paule <paule>2007-01-13 07:42:23 (UTC)
commita1360b0af73518d97ebe63ad3cd156cd8b57c8b5 (patch) (unidiff)
tree2630d54134a775f48254624273a8b381e77e39c0 /noncore/tools/clock/clock.cpp
parentb1075202780c1d807c9d9f5286a2ffa7714bae51 (diff)
downloadopie-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.cpp19
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
@@ -104,2 +104,7 @@ AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal,
104{ 104{
105 // Increase font size to make it a little more readable
106 QFont f(font());
107 f.setPointSize((int)(f.pointSize() * 1.7));
108 setFont(f);
109
105 setCaption( tr("Clock") ); 110 setCaption( tr("Clock") );
@@ -108,7 +113,7 @@ AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal,
108 113
109 connect(snoozeTime, SIGNAL(valueChanged(int)), this, 114 connect(cmdSnooze, SIGNAL(clicked()), this, SLOT(checkSnooze()));
110 SLOT(changePrompt(int))); 115 connect(cmdOk, SIGNAL(clicked()), this, SLOT(accept()));
111 connect(cmdOk, SIGNAL(clicked()), this, SLOT(checkSnooze()));
112} 116}
113 117
118
114// 119//
@@ -146,10 +151,2 @@ AlarmDlg::checkSnooze(void)
146 151
147void
148AlarmDlg::changePrompt(int mins)
149{
150 cmdOk->setText(mins > 0 ? tr("Snooze") : tr("Close") );
151}
152
153
154
155Clock::Clock( QWidget * parent, const char *, WFlags f ) 152Clock::Clock( QWidget * parent, const char *, WFlags f )