diff options
Diffstat (limited to 'kstars/kstars/locationdialog.cpp')
-rw-r--r-- | kstars/kstars/locationdialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kstars/kstars/locationdialog.cpp b/kstars/kstars/locationdialog.cpp index ec5e28a2..57287329 100644 --- a/kstars/kstars/locationdialog.cpp +++ b/kstars/kstars/locationdialog.cpp @@ -36,10 +36,10 @@ #include "mapcanvas.h" #include "dmsbox.h" -LocationDialog::LocationDialog( TQWidget* tqparent ) - : KDialogBase( KDialogBase::Plain, i18n( "Set Geographic Location" ), Ok|Cancel, Ok, tqparent ) { +LocationDialog::LocationDialog( TQWidget* parent ) + : KDialogBase( KDialogBase::Plain, i18n( "Set Geographic Location" ), Ok|Cancel, Ok, parent ) { - KStars *p = (KStars *)tqparent; + KStars *p = (KStars *)parent; TQFrame *page = plainPage(); CityBox = new TQGroupBox( page, "CityBox" ); @@ -217,7 +217,7 @@ LocationDialog::~LocationDialog(){ } void LocationDialog::initCityList( void ) { - KStars *p = (KStars *)tqparent(); + KStars *p = (KStars *)parent(); for (GeoLocation *loc = p->data()->geoList.first(); loc; loc = p->data()->geoList.next()) { GeoBox->insertItem( loc->fullName() ); @@ -252,7 +252,7 @@ void LocationDialog::initCityList( void ) { } void LocationDialog::filterCity( void ) { - KStars *p = (KStars *)tqparent(); + KStars *p = (KStars *)parent(); GeoBox->clear(); filteredCityList.clear(); @@ -302,7 +302,7 @@ void LocationDialog::changeCity( void ) { //Fill the fields at the bottom of the window with the selected city's data. if ( SelectedCity ) { - KStars *p = (KStars *)tqparent(); + KStars *p = (KStars *)parent(); NewCityName->setText( SelectedCity->translatedName() ); NewProvinceName->setText( SelectedCity->translatedProvince() ); NewCountryName->setText( SelectedCity->translatedCountry() ); @@ -328,7 +328,7 @@ void LocationDialog::changeCity( void ) { } void LocationDialog::addCity( void ) { - KStars *p = (KStars *)tqparent(); + KStars *p = (KStars *)parent(); bCityAdded = false; if ( !nameModified && !dataModified ) { @@ -417,7 +417,7 @@ void LocationDialog::addCity( void ) { } void LocationDialog::findCitiesNear( int lng, int lat ) { - KStars *ks = (KStars *)tqparent(); + KStars *ks = (KStars *)parent(); //find all cities within 3 degrees of (lng, lat); list them in GeoBox GeoBox->clear(); |