-rw-r--r-- | kalarmd/alarmdialog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp index 521781e..751ba57 100644 --- a/kalarmd/alarmdialog.cpp +++ b/kalarmd/alarmdialog.cpp | |||
@@ -61,27 +61,30 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
61 | mMessage = new QLabel ( " ", this ); | 61 | mMessage = new QLabel ( " ", this ); |
62 | int fs = 18; | 62 | int fs = 18; |
63 | int fs2 = 12; | 63 | int fs2 = 12; |
64 | if ( QApplication::desktop()->width() < 480 ) { | 64 | if ( QApplication::desktop()->width() < 480 ) { |
65 | setMaximumSize(220, 260); | 65 | setMaximumSize(220, 260); |
66 | fs2 = 10; | 66 | fs2 = 10; |
67 | } | 67 | } |
68 | else { | 68 | else { |
69 | setMaximumSize(440, 440); | 69 | setMaximumSize(440, 440); |
70 | } | 70 | } |
71 | layout->setSpacing( 3 ); | 71 | layout->setSpacing( 3 ); |
72 | layout->setMargin( 3 ); | 72 | layout->setMargin( 3 ); |
73 | 73 | QFont fo = QApplication::font(); | |
74 | l->setFont( QFont("helvetica",fs2, QFont::Bold) ); | 74 | fo.setBold( true ); |
75 | mMessage->setFont( QFont("helvetica",fs, QFont::Bold) ); | 75 | fo.setPointSize( fs2 ); |
76 | l->setFont( fo ); | ||
77 | fo.setPointSize( fs ); | ||
78 | mMessage->setFont(fo ); | ||
76 | mMessage->setAlignment( AlignCenter); | 79 | mMessage->setAlignment( AlignCenter); |
77 | l = new QLabel("Missed Alarms:",this); | 80 | l = new QLabel("Missed Alarms:",this); |
78 | l->setAlignment( AlignCenter); | 81 | l->setAlignment( AlignCenter); |
79 | layout->addWidget ( mMessage ); | 82 | layout->addWidget ( mMessage ); |
80 | layout->addWidget ( l ); | 83 | layout->addWidget ( l ); |
81 | mMissedAlarms= new QLabel ( "", this ); | 84 | mMissedAlarms= new QLabel ( "", this ); |
82 | mMissedAlarms->setAlignment( AlignCenter); | 85 | mMissedAlarms->setAlignment( AlignCenter); |
83 | 86 | ||
84 | playSoundTimer = new QTimer( this ); | 87 | playSoundTimer = new QTimer( this ); |
85 | connect ( playSoundTimer, SIGNAL( timeout() ), this, SLOT (playSound() ) ); | 88 | connect ( playSoundTimer, SIGNAL( timeout() ), this, SLOT (playSound() ) ); |
86 | 89 | ||
87 | playSoundTimer->stop(); | 90 | playSoundTimer->stop(); |