diff options
Diffstat (limited to 'imagecache.cpp')
-rw-r--r-- | imagecache.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/imagecache.cpp b/imagecache.cpp new file mode 100644 index 0000000..e59ffdf --- /dev/null +++ b/imagecache.cpp @@ -0,0 +1,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); +} |