示例#1
0
文件: map.cpp 项目: luznicky/GPXSee
Map::Map(const QString &name, const QString &url)
{
	_name = name;
	_url = url;

	connect(&Downloader::instance(), SIGNAL(finished()), this,
	  SLOT(emitLoaded()));

	QDir::home().mkpath(QString(TILES_DIR"/%1").arg(_name));
}
示例#2
0
文件: map.cpp 项目: tumic0/GPXSee
Map::Map(QObject *parent, const QString &name, const QString &url)
  : QObject(parent)
{
	_name = name;
	_url = url;

	connect(&Downloader::instance(), SIGNAL(finished()), this,
	  SLOT(emitLoaded()));

	QString path = TILES_DIR + QString("/") + _name;
	if (!QDir().mkpath(path))
		fprintf(stderr, "Error creating tiles dir: %s\n", qPrintable(path));
}