author | tille <tille> | 2002-10-21 19:18:53 (UTC) |
---|---|---|
committer | tille <tille> | 2002-10-21 19:18:53 (UTC) |
commit | 95a908dba86f7588e3130094e7d292f3df6a3a42 (patch) (unidiff) | |
tree | ed84d7763b33a6ae95fbbafa54262aca56fc4d4e /noncore/settings/netsystemtime/settime.cpp | |
parent | c3eedd530dc9675caa4ce98d1c0814ba61a746ed (diff) | |
download | opie-95a908dba86f7588e3130094e7d292f3df6a3a42.zip opie-95a908dba86f7588e3130094e7d292f3df6a3a42.tar.gz opie-95a908dba86f7588e3130094e7d292f3df6a3a42.tar.bz2 |
now working...
desiger 3 is much more useable -> ui file gone ;)
Diffstat (limited to 'noncore/settings/netsystemtime/settime.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/settime.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp index f6e02d5..949fcb3 100644 --- a/noncore/settings/netsystemtime/settime.cpp +++ b/noncore/settings/netsystemtime/settime.cpp | |||
@@ -51,50 +51,50 @@ | |||
51 | #include <stdio.h> | 51 | #include <stdio.h> |
52 | 52 | ||
53 | 53 | ||
54 | SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f ) | 54 | SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f ) |
55 | : NtpBase( parent, name, f ) | 55 | : NtpBase( parent, name, f ) |
56 | { | 56 | { |
57 | // setCaption( tr("Set System Time") ); | 57 | // setCaption( tr("Set System Time") ); |
58 | 58 | ||
59 | // QVBoxLayout *vb = new QVBoxLayout( this, 5 ); | 59 | // QVBoxLayout *vb = new QVBoxLayout( this, 5 ); |
60 | QVBoxLayout *vb = new QVBoxLayout( FrameSystemTime, 5 ); | 60 | QVBoxLayout *vb = new QVBoxLayout( FrameSystemTime, 5 ); |
61 | QVBoxLayout *vb2 = new QVBoxLayout( FrameSetTime, 5 ); | 61 | QVBoxLayout *vb2 = new QVBoxLayout( FrameSetTime, 5 ); |
62 | 62 | ||
63 | # TextLabelMainPredTime = new QLabel( FrameSystemTime ); | 63 | TextLabelMainPredTime = new QLabel( FrameSystemTime ); |
64 | # vb->addWidget( TextLabelMainPredTime, 1, 0 ); | 64 | vb->addWidget( TextLabelMainPredTime, 1, 0 ); |
65 | 65 | ||
66 | QHBoxLayout *hb = new QHBoxLayout( vb, -1, "timezone layout" ); | 66 | QHBoxLayout *hb = new QHBoxLayout( vb, -1, "timezone layout" ); |
67 | 67 | ||
68 | QLabel *lblZone = new QLabel( tr( "Time Zone" ), FrameSystemTime, "timezone label" ); | 68 | QLabel *lblZone = new QLabel( tr( "Time Zone" ), FrameSystemTime, "timezone label" ); |
69 | lblZone->setMaximumSize( lblZone->sizeHint() ); | 69 | lblZone->setMaximumSize( lblZone->sizeHint() ); |
70 | hb->addWidget( lblZone ); | 70 | hb->addWidget( lblZone ); |
71 | 71 | ||
72 | tz = new TimeZoneSelector( FrameSystemTime, "Timezone choices" ); | 72 | tz = new TimeZoneSelector( FrameSystemTime, "Timezone choices" ); |
73 | tz->setMinimumSize( tz->sizeHint() ); | 73 | tz->setMinimumSize( tz->sizeHint() ); |
74 | hb->addWidget( tz ); | 74 | hb->addWidget( tz ); |
75 | 75 | ||
76 | timeButton = new SetTime( FrameSetTime ); | 76 | timeButton = new SetTime( FrameSetTime ); |
77 | vb2->addWidget( timeButton ); | 77 | vb2->addWidget( timeButton ); |
78 | 78 | ||
79 | QHBoxLayout *db = new QHBoxLayout( vb2 ); | 79 | QHBoxLayout *db = new QHBoxLayout( vb2 ); |
80 | QLabel *dateLabel = new QLabel( tr("Date"), FrameSetTime ); | 80 | QLabel *dateLabel = new QLabel( tr("Date"), FrameSetTime ); |
81 | db->addWidget( dateLabel, 1 ); | 81 | db->addWidget( dateLabel, 1 ); |
82 | dateButton = new DateButton( TRUE, FrameSetTime ); | 82 | dateButton = new DateButton( TRUE, FrameSetTime ); |
83 | db->addWidget( dateButton, 2 ); | 83 | db->addWidget( dateButton, 2 ); |
84 | 84 | ||
85 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 85 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); |
86 | vb2->addItem( spacer ); | 86 | vb2->addItem( spacer ); |
87 | 87 | ||
88 | hline = new QFrame( FrameSystemTime ); | 88 | QFrame *hline = new QFrame( FrameSystemTime ); |
89 | hline->setFrameStyle( QFrame::HLine | QFrame::Sunken ); | 89 | hline->setFrameStyle( QFrame::HLine | QFrame::Sunken ); |
90 | vb->addWidget( hline ); | 90 | vb->addWidget( hline ); |
91 | 91 | ||
92 | Config config("qpe"); | 92 | Config config("qpe"); |
93 | config.setGroup( "Time" ); | 93 | config.setGroup( "Time" ); |
94 | 94 | ||
95 | QHBoxLayout *hb1 = new QHBoxLayout( vb ); | 95 | QHBoxLayout *hb1 = new QHBoxLayout( vb ); |
96 | 96 | ||
97 | QLabel *l = new QLabel( tr("Time format"), FrameSystemTime ); | 97 | QLabel *l = new QLabel( tr("Time format"), FrameSystemTime ); |
98 | hb1->addWidget( l, 1 ); | 98 | hb1->addWidget( l, 1 ); |
99 | 99 | ||
100 | 100 | ||
@@ -170,25 +170,25 @@ SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f ) | |||
170 | 170 | ||
171 | clockAppletCombo = new QComboBox( FrameSystemTime ); | 171 | clockAppletCombo = new QComboBox( FrameSystemTime ); |
172 | clockAppletCombo->insertItem( tr("hh:mm"), 0 ); | 172 | clockAppletCombo->insertItem( tr("hh:mm"), 0 ); |
173 | clockAppletCombo->insertItem( tr("D/M hh:mm"), 1 ); | 173 | clockAppletCombo->insertItem( tr("D/M hh:mm"), 1 ); |
174 | clockAppletCombo->insertItem( tr("M/D hh:mm"), 2 ); | 174 | clockAppletCombo->insertItem( tr("M/D hh:mm"), 2 ); |
175 | 175 | ||
176 | hb4->addWidget( clockAppletCombo, 2 ); | 176 | hb4->addWidget( clockAppletCombo, 2 ); |
177 | int clockApplet = config.readNumEntry("ClockApplet",0); | 177 | int clockApplet = config.readNumEntry("ClockApplet",0); |
178 | clockAppletCombo->setCurrentItem( clockApplet ); | 178 | clockAppletCombo->setCurrentItem( clockApplet ); |
179 | 179 | ||
180 | vb->addStretch( 0 ); | 180 | vb->addStretch( 0 ); |
181 | 181 | ||
182 | QFrame *hline = new QFrame( FrameSystemTime ); | 182 | hline = new QFrame( FrameSystemTime ); |
183 | hline->setFrameStyle( QFrame::HLine | QFrame::Sunken ); | 183 | hline->setFrameStyle( QFrame::HLine | QFrame::Sunken ); |
184 | vb->addWidget( hline ); | 184 | vb->addWidget( hline ); |
185 | 185 | ||
186 | ButtonSetTime = new QPushButton( FrameSystemTime ); | 186 | ButtonSetTime = new QPushButton( FrameSystemTime ); |
187 | vb->addWidget( ButtonSetTime, 1, 0 ); | 187 | vb->addWidget( ButtonSetTime, 1, 0 ); |
188 | 188 | ||
189 | QObject::connect( PushButtonSetManualTime, SIGNAL(clicked()), | 189 | QObject::connect( PushButtonSetManualTime, SIGNAL(clicked()), |
190 | this, SLOT(commitTime())); | 190 | this, SLOT(commitTime())); |
191 | 191 | ||
192 | QObject::connect( tz, SIGNAL( signalNewTz( const QString& ) ), | 192 | QObject::connect( tz, SIGNAL( signalNewTz( const QString& ) ), |
193 | timeButton, SLOT( slotTzChange( const QString& ) ) ); | 193 | timeButton, SLOT( slotTzChange( const QString& ) ) ); |
194 | QObject::connect( tz, SIGNAL( signalNewTz( const QString& ) ), | 194 | QObject::connect( tz, SIGNAL( signalNewTz( const QString& ) ), |