Diffstat (limited to 'core/settings/citytime/citytime.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/citytime/citytime.cpp | 18 |
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(); } |