From 4f1cf7f8c9925f31f2940207b8f7b5771533b734 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 12 Oct 2002 13:43:58 +0000 Subject: first step to make citytime more usable --- (limited to 'core/settings/citytime/citytime.cpp') 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 + #include "zonemap.h" #include "citytime.h" @@ -29,7 +31,6 @@ #include #endif - #include #include #include @@ -37,6 +38,7 @@ #include #include #include +#include #include @@ -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,11 +105,15 @@ 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; - 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 timerEvent( 0 ); } @@ -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 ) -- cgit v0.9.0.2