[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Tue Jul 28 22:59:19 CEST 2009
SVN commit 1003806 by prakash:
Adding a function to search for a SkyObject from the session list by its name
CCMAIL: kstars-devel at kde.org
M +7 -0 observinglist.cpp
M +2 -0 observinglist.h
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #1003805:1003806
@@ -1387,4 +1387,11 @@
}
delete w;
}
+
+SkyObject* ObservingList::findObjectByName( QString name ) {
+ foreach( SkyObject* o, sessionList() )
+ if( o->name() == name )
+ return o;
+ return NULL;
+}
#include "observinglist.moc"
--- branches/kstars/summer/kstars/kstars/tools/observinglist.h #1003805:1003806
@@ -161,6 +161,8 @@
KStarsDateTime dateTime() { return dt; }
+ SkyObject* findObjectByName( QString name );
+
public slots:
/**@short add a new object to list
*@p o pointer to the object to add to the list
More information about the Kstars-devel
mailing list