author | harlekin <harlekin> | 2002-10-12 13:43:58 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-12 13:43:58 (UTC) |
commit | 4f1cf7f8c9925f31f2940207b8f7b5771533b734 (patch) (side-by-side diff) | |
tree | 95656286280ec923b6262bcdfb55a986c8fc4ab8 /core/settings/citytime/citytime.cpp | |
parent | d442e7bcc977c46a77749c0d2508a755a8d9db7a (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | core/settings/citytime/citytime.cpp | 14 |
1 files changed, 12 insertions, 2 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 @@ -18,6 +18,8 @@ ** **********************************************************************/ +// changes by Maximilian Reiss <harlekin@handhelds.org> + #include "zonemap.h" #include "citytime.h" @@ -29,7 +31,6 @@ #include <qpe/qcopenvelope_qws.h> #endif - #include <qdir.h> #include <qfile.h> #include <qlabel.h> @@ -37,6 +38,7 @@ #include <qregexp.h> #include <qtextstream.h> #include <qtoolbutton.h> +#include <qlayout.h> #include <stdlib.h> @@ -77,7 +79,6 @@ CityTime::CityTime( QWidget *parent, const char* name, QWidget *d = QApplication::desktop(); if ( d->width() < d->height() ) { // append for that 4 down look - listCities.append( cmdCity4 ); listCities.append( cmdCity5 ); listCities.append( cmdCity6 ); @@ -104,6 +105,10 @@ CityTime::CityTime( QWidget *parent, const char* name, cmdCity5->hide(); cmdCity6->hide(); } + + selWidget = frmMap->selectionWidget( this ); + selWidget->hide(); + CityTimeBaseLayout->addWidget( selWidget ); bAdded = true; readInTimes(); changed = FALSE; @@ -199,7 +204,10 @@ void CityTime::showTime( void ) void CityTime::beginNewTz() { + buttonWidget->hide(); frmMap->setFocus(); + selWidget->show(); + // CityTimeBaseLayout->addWidget( selWidget ); } void CityTime::slotNewTz( const QString & strNewCountry, @@ -223,6 +231,8 @@ void CityTime::slotNewTz( const QString & strNewCountry, } } showTime(); + buttonWidget->show(); + selWidget->hide(); } void CityTime::readInTimes( void ) |