summaryrefslogtreecommitdiffabout
path: root/kalarmd/alarmdialog.cpp
Side-by-side diff
Diffstat (limited to 'kalarmd/alarmdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/alarmdialog.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp
index bdeee4a..53ff488 100644
--- a/kalarmd/alarmdialog.cpp
+++ b/kalarmd/alarmdialog.cpp
@@ -34,2 +34,3 @@
#include <qpushbutton.h>
+#include <qregexp.h>
#ifndef DESKTOP_VERSION
@@ -60,3 +61,3 @@
AlarmDialog::AlarmDialog(QWidget *parent,const char *name)
- : QDialog (parent, name, true, Qt::WStyle_StaysOnTop )
+ : QDialog (parent, name, true, Qt::WStyle_Customize |Qt::WStyle_StaysOnTop | Qt::WStyle_DialogBorder)
{
@@ -234,3 +235,5 @@ bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, boo
mMissedAlarmsCombo->show();
- mMissedAlarmsCombo->insertItem( mMessage->text().stripWhiteSpace() );
+ QString newItem = mMessage->text().stripWhiteSpace();
+ newItem.replace( QRegExp("\n"), QString(" ") );
+ mMissedAlarmsCombo->insertItem( newItem );
mMissedAlarms->setText( "Missed alarms:");
@@ -267,3 +270,3 @@ void AlarmDialog::playSound ()
return;
- if (mSilent )
+ if ( mSilent )
return;
@@ -271,5 +274,5 @@ void AlarmDialog::playSound ()
setActiveWindow();
+ raise();
mSuspendSpin->setFocus();
- raise();
- repaint();
+