StelLocation.cpp   StelLocation.cpp 
skipping to change at line 26 skipping to change at line 26
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "StelLocation.hpp" #include "StelLocation.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include <QStringList> #include <QStringList>
const int StelLocation::DEFAULT_BORTLE_SCALE_INDEX = 2; const int StelLocation::DEFAULT_BORTLE_SCALE_INDEX = 2;
int StelLocation::metaTypeId = initMetaType();
int StelLocation::initMetaType()
{
return qRegisterMetaType<StelLocation>();
}
// Output the location as a string ready to be stored in the user_location file // Output the location as a string ready to be stored in the user_location file
QString StelLocation::serializeToLine() const QString StelLocation::serializeToLine() const
{ {
return QString("%1\t%2\t%3\t%4\t%5\t%6\t%7\t%8\t%9\t%10\t%11\t%12") return QString("%1\t%2\t%3\t%4\t%5\t%6\t%7\t%8\t%9\t%10\t%11\t%12")
.arg(name) .arg(name)
.arg(state) .arg(state)
.arg(country) .arg(country)
.arg(role) .arg(role)
.arg(population/1000) .arg(population/1000)
.arg(latitude<0 ? QString("%1S").arg(-latitude, 0, ' f', 6) : QString("%1N").arg(latitude, 0, 'f', 6)) .arg(latitude<0 ? QString("%1S").arg(-latitude, 0, ' f', 6) : QString("%1N").arg(latitude, 0, 'f', 6))
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/