OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [GnssWidgets/] [StreetMapObject.cpp] - Diff between revs 2 and 3

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 3
Line 64... Line 64...
    m_proxy.setHostName(tr("http://proxy.server.com"));
    m_proxy.setHostName(tr("http://proxy.server.com"));
    m_proxy.setPort(911);
    m_proxy.setPort(911);
    m_manager.setProxy(m_proxy);
    m_manager.setProxy(m_proxy);
#endif
#endif
 
 
    QNetworkDiskCache *cache = new QNetworkDiskCache(this);
    QNetworkDiskCache *cache = new QNetworkDiskCache;
    cache->setCacheDirectory(
    cache->setCacheDirectory(
        QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
        QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
    m_manager.setCache(cache);
    m_manager.setCache(cache);
    connect(&m_manager, SIGNAL(finished(QNetworkReply*)),
    connect(&m_manager, SIGNAL(finished(QNetworkReply*)),
            this, SLOT(handleNetworkData(QNetworkReply*)));
            this, SLOT(handleNetworkData(QNetworkReply*)));
}
}
 
 
StreetMap::~StreetMap() {
StreetMap::~StreetMap() {
    QNetworkSession session(m_manager.configuration());
 
    session.close();
 
    foreach(QPoint tp, m_tilePixmaps.keys()) {
 
        m_tilePixmaps.remove(tp);
 
    }
 
    m_tilePixmaps.clear();
 
}
}
 
 
QPoint StreetMap::coordToPixpos(QPointF coord) {
QPoint StreetMap::coordToPixpos(QPointF coord) {
    QPointF f = tileForCoordinate(coord.x(), coord.y(), zoom);
    QPointF f = tileForCoordinate(coord.x(), coord.y(), zoom);
    f -= ct;
    f -= ct;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.