author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kalarmd/alarmdialog.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kalarmd/alarmdialog.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp index 18ce9da..467fef7 100644 --- a/kalarmd/alarmdialog.cpp +++ b/kalarmd/alarmdialog.cpp | |||
@@ -25,5 +25,6 @@ | |||
25 | 25 | ||
26 | #include <qhbox.h> | 26 | #include <q3hbox.h> |
27 | #include <qvbox.h> | 27 | #include <q3vbox.h> |
28 | #include <qapp.h> | 28 | #include <qapplication.h> |
29 | #include <QDesktopWidget> | ||
29 | #include <qlabel.h> | 30 | #include <qlabel.h> |
@@ -41,2 +42,5 @@ | |||
41 | #include <qspinbox.h> | 42 | #include <qspinbox.h> |
43 | //Added by qt3to4: | ||
44 | #include <Q3HBoxLayout> | ||
45 | #include <Q3VBoxLayout> | ||
42 | #endif | 46 | #endif |
@@ -64,6 +68,6 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
64 | setCaption( "KO/Pi Alarm!" ); | 68 | setCaption( "KO/Pi Alarm!" ); |
65 | QVBoxLayout* layout = new QVBoxLayout( this); | 69 | Q3VBoxLayout* layout = new Q3VBoxLayout( this); |
66 | QLabel* l = new QLabel("The following event triggered alarm:",this); | 70 | QLabel* l = new QLabel("The following event triggered alarm:",this); |
67 | layout->addWidget ( l ); | 71 | layout->addWidget ( l ); |
68 | l->setAlignment( AlignCenter); | 72 | l->setAlignment( Qt::AlignCenter); |
69 | mMessage = new QLabel ( " ", this ); | 73 | mMessage = new QLabel ( " ", this ); |
@@ -85,6 +89,6 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
85 | mMessage->setFont(fo ); | 89 | mMessage->setFont(fo ); |
86 | mMessage->setAlignment( AlignCenter); | 90 | mMessage->setAlignment( Qt::AlignCenter); |
87 | layout->addWidget ( mMessage ); | 91 | layout->addWidget ( mMessage ); |
88 | mMissedAlarms= new QLabel ( "(No missed Alarms)", this ); | 92 | mMissedAlarms= new QLabel ( "(No missed Alarms)", this ); |
89 | mMissedAlarms->setAlignment( AlignCenter); | 93 | mMissedAlarms->setAlignment( Qt::AlignCenter); |
90 | 94 | ||
@@ -105,3 +109,3 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
105 | #endif | 109 | #endif |
106 | labb->setAlignment(AlignCenter); | 110 | labb->setAlignment(Qt::AlignCenter); |
107 | //layout->addWidget ( labb ); | 111 | //layout->addWidget ( labb ); |
@@ -124,3 +128,3 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
124 | mSuspendSpin->setButtonSymbols( QSpinBox::PlusMinus ); | 128 | mSuspendSpin->setButtonSymbols( QSpinBox::PlusMinus ); |
125 | QHBoxLayout* layoutSpin = new QHBoxLayout( layout ); | 129 | Q3HBoxLayout* layoutSpin = new Q3HBoxLayout( layout ); |
126 | layoutSpin->addStretch (); | 130 | layoutSpin->addStretch (); |
@@ -130,3 +134,3 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
130 | 134 | ||
131 | QVBox * bbox = new QVBox ( this ); | 135 | Q3VBox * bbox = new Q3VBox ( this ); |
132 | layout->addWidget ( bbox ); | 136 | layout->addWidget ( bbox ); |
@@ -134,3 +138,3 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
134 | labb = new QLabel("Press \"Cancel\" or \"Esc\" to suspend!",bbox); | 138 | labb = new QLabel("Press \"Cancel\" or \"Esc\" to suspend!",bbox); |
135 | labb->setAlignment(AlignCenter); | 139 | labb->setAlignment(Qt::AlignCenter); |
136 | mSuspendButton = new QPushButton( "Suspend", bbox); | 140 | mSuspendButton = new QPushButton( "Suspend", bbox); |