void WorldTime::slotNewTz( const QTimeZone& zone ) { if( Qtopia::mousePreferred()) { changed = true; return; } QTimeZone curZone; int selButton = findCurrentButton(); if(selButton > -1 ) { strCityTz[selButton] = zone.id(); // qWarning()<< "slotNewTz"<<strCityTz[selButton]; listCities.at(selButton)->setText( zone.city()); listTimes.at(selButton)->setZone( zone.id()); if( !isEditMode) { changed = true; } } }
void WorldTime::selected() { if(!changed) { changed = true; } else { QTimeZone zone = frmMap->zone(); int selButton = findCurrentButton(); if(selButton != -1 ) { strCityTz[selButton] = zone.id(); // qWarning() << "selected" << strCityTz[selButton] << zone.id(); listCities.at(selButton)->setText( zone.city()); listTimes.at(selButton)->setZone( zone.id()); saveChanges(); changed = false; } viewMode(); } }