summaryrefslogtreecommitdiffabout
path: root/kalarmd/alarmdialog.cpp
Unidiff
Diffstat (limited to 'kalarmd/alarmdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/alarmdialog.cpp24
1 files changed, 20 insertions, 4 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp
index 751ba57..794c8ae 100644
--- a/kalarmd/alarmdialog.cpp
+++ b/kalarmd/alarmdialog.cpp
@@ -34,3 +34,5 @@
34#include <qpushbutton.h> 34#include <qpushbutton.h>
35#define protected public
35#include <qspinbox.h> 36#include <qspinbox.h>
37#undef protected
36#include <stdlib.h> 38#include <stdlib.h>
@@ -92,11 +94,22 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name)
92 layout->addWidget ( mMissedAlarms ); 94 layout->addWidget ( mMissedAlarms );
93 QHBox *suspendBox = new QHBox( this ); 95 QVBox *suspendBox = new QVBox( this );
94 suspendBox->setSpacing(3); 96 suspendBox->setSpacing(3);
95 layout->addWidget ( suspendBox ); 97 layout->addWidget ( suspendBox );
96 (void)new QLabel("Suspend duration (minutes):",suspendBox); 98 QLabel* labb = new QLabel("Suspend duration (minutes):",suspendBox);
99 labb->setAlignment(AlignCenter);
100 fo = font();
101 fo.setPointSize( 36 );
97 mSuspendSpin = new QSpinBox(1,1440,1,suspendBox); 102 mSuspendSpin = new QSpinBox(1,1440,1,suspendBox);
103 mSuspendSpin->setFont( fo );
98 mSuspendSpin->setValue(7); // default suspend duration 104 mSuspendSpin->setValue(7); // default suspend duration
99 QHBox * bbox = new QHBox ( this ); 105 mSuspendSpin->setButtonSymbols( QSpinBox::PlusMinus );
106 mSuspendSpin->setButtonSymbols( QSpinBox::PlusMinus );
107 mSuspendSpin->upButton ()->setFixedSize( QSize( 48, 30 ));
108 mSuspendSpin->downButton ()->setFixedSize( QSize( 48, 30 ));
109 mSuspendSpin->setFixedSize( 100,62 );
110 mSuspendSpin->setButtonSymbols( QSpinBox::PlusMinus );
111
112 QVBox * bbox = new QVBox ( this );
100 layout->addWidget ( bbox ); 113 layout->addWidget ( bbox );
101 bbox->layout()->setSpacing( 5 ); 114 bbox->layout()->setSpacing( 2 );
102 QPushButton* suspend = new QPushButton( "Suspend", bbox); 115 QPushButton* suspend = new QPushButton( "Suspend", bbox);
@@ -104,2 +117,5 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name)
104 QPushButton* okbut = new QPushButton( "Ok", bbox); 117 QPushButton* okbut = new QPushButton( "Ok", bbox);
118 suspend->setFont( fo );
119 silen->setFont( fo );
120 okbut->setFont( fo );
105 connect (silen , SIGNAL( clicked() ), this, SLOT (silent() ) ); 121 connect (silen , SIGNAL( clicked() ), this, SLOT (silent() ) );