~ubuntu-branches/ubuntu/saucy/rocs/saucy-proposed

« back to all changes in this revision

Viewing changes to RocsCore/LoadSave/Plugins/kmlFileFormat/KmlHandler.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg, Rohan Garg, Philip Muškovac
  • Date: 2013-06-21 02:04:20 UTC
  • mfrom: (1.1.27)
  • Revision ID: package-import@ubuntu.com-20130621020420-lzlui9y7qc6w3xog
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release

[ Philip Muškovac ]
* Build-depend on libgrantlee-dev and libx11-dev
* Update rocs.install and not-installed 

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        if (m_name.isEmpty()) {
57
57
            m_name = QString::number(qrand());
58
58
        }
59
 
        n = m_graph->addData(m_name);
 
59
        n = m_graph->createData(m_name, 0);
60
60
        QStringList values = m_coordinates.split(',');
61
61
        if (values.count() >= 2) {
62
62
 
84
84
 
85
85
            QStringList values = point.split(',');
86
86
            if (values.count() >= 2) {
87
 
                n = m_graph->addData(m_name + '_' + QString::number(count + 1));
 
87
                n = m_graph->createData(m_name + '_' + QString::number(count + 1), 0);
88
88
 
89
89
                n->setX(values.at(0).toDouble());
90
90
                n->addDynamicProperty("Longitude", values.at(0).toDouble());
98
98
                n->addDynamicProperty("Description", m_description);
99
99
            }
100
100
            if (n_old) {
101
 
                m_graph->addPointer(n_old, n);
 
101
                m_graph->createPointer(n_old, n, 0);
102
102
            }
103
103
            n_old = n;
104
104
        }