diff options
Diffstat (limited to 'kstars/kstars/ksnewstuff.cpp')
-rw-r--r-- | kstars/kstars/ksnewstuff.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kstars/kstars/ksnewstuff.cpp b/kstars/kstars/ksnewstuff.cpp index e416388e..aec4185e 100644 --- a/kstars/kstars/ksnewstuff.cpp +++ b/kstars/kstars/ksnewstuff.cpp @@ -37,10 +37,10 @@ #include "objectnamelist.h" #include "skymap.h" -KSNewStuff::KSNewStuff( TQWidget *parent ) : - TQObject(), KNewStuff( "kstars", parent ), NGCUpdated( false ) +KSNewStuff::KSNewStuff( TQWidget *tqparent ) : + TQObject(), KNewStuff( "kstars", tqparent ), NGCUpdated( false ) { - ks = (KStars*)parent; + ks = (KStars*)tqparent; kdw = new KDirWatch( this ); kdw->addDir( KGlobal::dirs()->saveLocation("data", kapp->instanceName(), true) ); } @@ -62,7 +62,7 @@ bool KSNewStuff::install( const TQString &fileName ) archiveDir->copyTo(destDir); archive.close(); - kapp->processEvents(10000); + kapp->tqprocessEvents(10000); //read the new data into the program //this return might be the result of checking if everything is installed ok @@ -75,11 +75,11 @@ void KSNewStuff::updateData( const TQString &path ) { qd.setFilter( TQDir::Files ); //Show the Wait cursor - ks->setCursor(TQCursor(Qt::WaitCursor)); + ks->setCursor(TQCursor(TQt::WaitCursor)); //Handle the Steinicke NGC/IC catalog - if ( !NGCUpdated && qd[0].contains( "ngcic" ) ) { + if ( !NGCUpdated && qd[0].tqcontains( "ngcic" ) ) { //Build a progress dialog to show during data installation. KProgressDialog prog( 0, "newstuffprogdialog", i18n( "Please Wait" ), i18n( "Installing Steinicke NGC/IC catalog..." ), false /*modal*/ ); @@ -87,7 +87,7 @@ void KSNewStuff::updateData( const TQString &path ) { prog.setMinimumDuration( 0 /*millisec*/ ); prog.progressBar()->setTotalSteps( 0 ); //show generic progress activity prog.show(); - kapp->processEvents(1000); + kapp->tqprocessEvents(1000); //First, remove the existing NGC/IC objects from the ObjectNameList. for ( DeepSkyObject *o = ks->data()->deepSkyList.first(); o; o = ks->data()->deepSkyList.next() ) { @@ -163,10 +163,10 @@ void KSNewStuff::updateData( const TQString &path ) { } //Restore arrow cursor - ks->setCursor(TQCursor(Qt::ArrowCursor)); + ks->setCursor(TQCursor(TQt::ArrowCursor)); } -void KSNewStuff::slotProcessEvents() { kapp->processEvents( 500 ); } +void KSNewStuff::slotProcessEvents() { kapp->tqprocessEvents( 500 ); } #include "ksnewstuff.moc" |