[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Sun May 31 13:52:19 CEST 2009
SVN commit 975835 by prakash:
Implementing saving a loading of dates when the session list is saved.
CCMAIL: kstars-devel at kde.org
M +3 -2 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #975834:975835
@@ -816,7 +816,8 @@
QStringList fields = line.split('|');
geo = ks->data()->locationNamed(fields[0],fields[1],fields[2]);
ui->SetLocation -> setText( geo -> fullName() );
-
+ dt.setDate(QDate::fromString(fields[3],"dMyyyy" ));
+ ui->DateEdit->setDate( dt.date() );
while ( ! istream.atEnd() ) {
line = istream.readLine();
@@ -968,7 +969,7 @@
}
QTextStream ostream(&f);
ostream << SessionName << endl;
- ostream << geo->name() << "|" <<geo->province() << "|" << geo->country() << endl;
+ ostream << geo->name() << "|" <<geo->province() << "|" << geo->country() << "|" << dt.date().toString("dMyyyy") << endl;
foreach ( SkyObject* o, SessionList() ) {
if ( o->name() == "star" ) {
ostream << o->name() << " " << o->ra()->Hours() << " " << o->dec()->Degrees() << endl;
More information about the Kstars-devel
mailing list