-rw-r--r-- | core/settings/citytime/citytime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/settings/citytime/citytime.cpp b/core/settings/citytime/citytime.cpp index f33b19f..5dc9b02 100644 --- a/core/settings/citytime/citytime.cpp +++ b/core/settings/citytime/citytime.cpp | |||
@@ -1,78 +1,78 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | // changes by Maximilian Reiss <harlekin@handhelds.org> | 21 | // changes by Maximilian Reiss <harlekin@handhelds.org> |
22 | 22 | ||
23 | #include "zonemap.h" | 23 | #include "zonemap.h" |
24 | #include "citytime.h" | 24 | #include "citytime.h" |
25 | 25 | ||
26 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
27 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
28 | #include <qpe/timestring.h> | 28 | #include <qpe/timestring.h> |
29 | #include <qpe/tzselect.h> | 29 | #include <qpe/tzselect.h> |
30 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) | 30 | #if !defined(QT_NO_COP) |
31 | #include <qpe/qcopenvelope_qws.h> | 31 | #include <qpe/qcopenvelope_qws.h> |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #include <qdir.h> | 34 | #include <qdir.h> |
35 | #include <qfile.h> | 35 | #include <qfile.h> |
36 | #include <qlabel.h> | 36 | #include <qlabel.h> |
37 | #include <qmessagebox.h> | 37 | #include <qmessagebox.h> |
38 | #include <qregexp.h> | 38 | #include <qregexp.h> |
39 | #include <qtextstream.h> | 39 | #include <qtextstream.h> |
40 | #include <qtoolbutton.h> | 40 | #include <qtoolbutton.h> |
41 | #include <qlayout.h> | 41 | #include <qlayout.h> |
42 | 42 | ||
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | 44 | ||
45 | CityTime::CityTime( QWidget *parent, const char* name, | 45 | CityTime::CityTime( QWidget *parent, const char* name, |
46 | WFlags fl ) | 46 | WFlags fl ) |
47 | : CityTimeBase( parent, name, fl ), | 47 | : CityTimeBase( parent, name, fl ), |
48 | strRealTz(0), | 48 | strRealTz(0), |
49 | bAdded(false) | 49 | bAdded(false) |
50 | { | 50 | { |
51 | Config config( "qpe" ); | 51 | Config config( "qpe" ); |
52 | bWhichClock = config.readBoolEntry( "AMPM", TRUE ); | 52 | bWhichClock = config.readBoolEntry( "AMPM", TRUE ); |
53 | frmMap->changeClock( bWhichClock ); | 53 | frmMap->changeClock( bWhichClock ); |
54 | 54 | ||
55 | char *pEnv; | 55 | char *pEnv; |
56 | pEnv = NULL; | 56 | pEnv = NULL; |
57 | pEnv = getenv("TZ"); | 57 | pEnv = getenv("TZ"); |
58 | if ( pEnv ) | 58 | if ( pEnv ) |
59 | strRealTz = pEnv; | 59 | strRealTz = pEnv; |
60 | pEnv = NULL; | 60 | pEnv = NULL; |
61 | pEnv = getenv("HOME"); | 61 | pEnv = getenv("HOME"); |
62 | if ( pEnv ) | 62 | if ( pEnv ) |
63 | strHome = pEnv; | 63 | strHome = pEnv; |
64 | // append the labels to their respective lists... | 64 | // append the labels to their respective lists... |
65 | listCities.setAutoDelete( true ); | 65 | listCities.setAutoDelete( true ); |
66 | listTimes.setAutoDelete( true ); | 66 | listTimes.setAutoDelete( true ); |
67 | 67 | ||
68 | listCities.append( cmdCity1 ); | 68 | listCities.append( cmdCity1 ); |
69 | listCities.append( cmdCity2 ); | 69 | listCities.append( cmdCity2 ); |
70 | listCities.append( cmdCity3 ); | 70 | listCities.append( cmdCity3 ); |
71 | 71 | ||
72 | listTimes.append( lblCTime1 ); | 72 | listTimes.append( lblCTime1 ); |
73 | listTimes.append( lblCTime2 ); | 73 | listTimes.append( lblCTime2 ); |
74 | listTimes.append( lblCTime3 ); | 74 | listTimes.append( lblCTime3 ); |
75 | 75 | ||
76 | 76 | ||
77 | // kludgy way of getting the screen size so we don't have to depend | 77 | // kludgy way of getting the screen size so we don't have to depend |
78 | // on a resize event... | 78 | // on a resize event... |