summaryrefslogtreecommitdiff
path: root/core/settings/citytime/citytime.cpp
authorharlekin <harlekin>2002-10-12 13:43:58 (UTC)
committer harlekin <harlekin>2002-10-12 13:43:58 (UTC)
commit4f1cf7f8c9925f31f2940207b8f7b5771533b734 (patch) (side-by-side diff)
tree95656286280ec923b6262bcdfb55a986c8fc4ab8 /core/settings/citytime/citytime.cpp
parentd442e7bcc977c46a77749c0d2508a755a8d9db7a (diff)
downloadopie-4f1cf7f8c9925f31f2940207b8f7b5771533b734.zip
opie-4f1cf7f8c9925f31f2940207b8f7b5771533b734.tar.gz
opie-4f1cf7f8c9925f31f2940207b8f7b5771533b734.tar.bz2
first step to make citytime more usable
Diffstat (limited to 'core/settings/citytime/citytime.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/citytime/citytime.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/core/settings/citytime/citytime.cpp b/core/settings/citytime/citytime.cpp
index b2f9f14..f33b19f 100644
--- a/core/settings/citytime/citytime.cpp
+++ b/core/settings/citytime/citytime.cpp
@@ -20,2 +20,4 @@
+// changes by Maximilian Reiss <harlekin@handhelds.org>
+
#include "zonemap.h"
@@ -31,3 +33,2 @@
-
#include <qdir.h>
@@ -39,2 +40,3 @@
#include <qtoolbutton.h>
+#include <qlayout.h>
@@ -79,3 +81,2 @@ CityTime::CityTime( QWidget *parent, const char* name,
// append for that 4 down look
-
listCities.append( cmdCity4 );
@@ -106,2 +107,6 @@ CityTime::CityTime( QWidget *parent, const char* name,
}
+
+ selWidget = frmMap->selectionWidget( this );
+ selWidget->hide();
+ CityTimeBaseLayout->addWidget( selWidget );
bAdded = true;
@@ -109,4 +114,4 @@ CityTime::CityTime( QWidget *parent, const char* name,
changed = FALSE;
- QObject::connect( qApp, SIGNAL( clockChanged(bool) ),
- this, SLOT( changeClock(bool) ) );
+ QObject::connect( qApp, SIGNAL( clockChanged( bool ) ),
+ this, SLOT( changeClock( bool ) ) );
// now start the timer so we can update the time quickly every second
@@ -201,3 +206,6 @@ void CityTime::beginNewTz()
{
+ buttonWidget->hide();
frmMap->setFocus();
+ selWidget->show();
+ // CityTimeBaseLayout->addWidget( selWidget );
}
@@ -225,2 +233,4 @@ void CityTime::slotNewTz( const QString & strNewCountry,
showTime();
+ buttonWidget->show();
+ selWidget->hide();
}