author | zautrix <zautrix> | 2005-04-19 15:06:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-19 15:06:33 (UTC) |
commit | da4130c979ec1ea278183ef7697777cb4d1f5101 (patch) (side-by-side diff) | |
tree | bd43a5c8828a43aa50b60f0a7da6e0a08a0e84ee /kalarmd | |
parent | 4331d5d1ef467cd2f962fc113b35cceb0d81d9b2 (diff) | |
download | kdepimpi-da4130c979ec1ea278183ef7697777cb4d1f5101.zip kdepimpi-da4130c979ec1ea278183ef7697777cb4d1f5101.tar.gz kdepimpi-da4130c979ec1ea278183ef7697777cb4d1f5101.tar.bz2 |
alarm +version
-rw-r--r-- | kalarmd/alarmdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp index 1cda534..17d4afa 100644 --- a/kalarmd/alarmdialog.cpp +++ b/kalarmd/alarmdialog.cpp @@ -30,65 +30,65 @@ #include <qlayout.h> #include <qfile.h> #include <qtimer.h> #include <qsound.h> #include <qpushbutton.h> #include <qregexp.h> #ifndef DESKTOP_VERSION #define protected public #include <qspinbox.h> #undef protected #else #include <qspinbox.h> #endif #include <stdlib.h> #ifndef _WIN32_ #include <unistd.h> #include <sys/ioctl.h> #endif #include <stdio.h> #include <fcntl.h> #ifndef DESKTOP_VERSION #include <qtopia/alarmserver.h> #include <qpe/resource.h> #include <qtopia/sound.h> #endif #include "alarmdialog.h" AlarmDialog::AlarmDialog(QWidget *parent,const char *name) - : QDialog (parent, name, true, Qt::WStyle_Customize |Qt::WStyle_StaysOnTop | Qt::WStyle_DialogBorder) + : QDialog (parent, name ,false, Qt::WStyle_StaysOnTop ) { setCaption( "KO/Pi Alarm!" ); QVBoxLayout* layout = new QVBoxLayout( this); QLabel* l = new QLabel("The following event triggered alarm:",this); layout->addWidget ( l ); l->setAlignment( AlignCenter); mMessage = new QLabel ( " ", this ); int fs = 18; int fs2 = 12; int baseSize = 6; if ( QApplication::desktop()->width() < 480 ) { fs2 = 10; fs = 12; baseSize = 4; } layout->setSpacing( 3 ); layout->setMargin( 3 ); QFont fo = QApplication::font(); fo.setBold( true ); fo.setPointSize( fs2 ); l->setFont( fo ); fo.setPointSize( fs ); mMessage->setFont(fo ); mMessage->setAlignment( AlignCenter); layout->addWidget ( mMessage ); mMissedAlarms= new QLabel ( "(No missed Alarms)", this ); mMissedAlarms->setAlignment( AlignCenter); playSoundTimer = new QTimer( this ); connect ( playSoundTimer, SIGNAL( timeout() ), this, SLOT (playSound() ) ); playSoundTimer->stop(); |