From 2d346e4052fd726e657daee4ac3f2bcc7103f5fb Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 18 Sep 2005 23:40:38 +0000 Subject: wn --- (limited to 'kalarmd/alarmdialog.cpp') diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp index ddb125a..18ce9da 100644 --- a/kalarmd/alarmdialog.cpp +++ b/kalarmd/alarmdialog.cpp @@ -251,8 +251,14 @@ bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, boo int h = minimumSizeHint().height() ; int dw = QApplication::desktop()->width(); int dh = QApplication::desktop()->height(); + if ( w < 220 ) w = 220; + if ( h < 220 ) h = 220; setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); - hide(); + showNormal(); + setActiveWindow(); + raise(); + setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); + //hide(); #ifndef _WIN32_ if ( fd_led > 0 ) { @@ -269,10 +275,8 @@ bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, boo void AlarmDialog::forceRepaint() { - - showNormal(); setActiveWindow(); - raise(); + repaint(); mSuspendSpin->setFocus(); playSoundTimer->start( 1000, true ); -- cgit v0.9.0.2