summaryrefslogtreecommitdiff
path: root/imagecache.cpp
blob: e59ffdf8f84dfaab704f6f32a71686286534adcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <QtCore/QDir>
#include <QtCore/QDebug>

#include "global.h"
#include "imagecache.h"

ImageCache::ImageCache(QObject *parent) :
    QNetworkDiskCache(parent)
{
	QString cache_path = board_manager->getCachePath() + "/images";
	QDir dir;
	if (!dir.mkpath(cache_path)) {
		qWarning() << "Could not create image cache path" << cache_path;
	}
	setCacheDirectory(cache_path);
}