Commit ebda1e60 authored by Thomas Zander's avatar Thomas Zander

Remove unused location url and add imageLocation() which returns the url of...

Remove unused location url and add imageLocation() which returns the url of the local filename if there is one

svn path=/trunk/koffice/; revision=689489
parent 30a6211e
......@@ -110,11 +110,7 @@ QPixmap KoImageData::pixmap() {
return d->pixmap;
}
void KoImageData::setUrl(const KUrl &location) {
d->url = location;
}
KUrl KoImageData::location() const {
KUrl KoImageData::imageLocation() const {
return d->url;
}
......@@ -167,6 +163,7 @@ bool KoImageData::loadFromStore(QIODevice *device) {
return false;
}
}
d->url = d->tempImageFile->fileName();
d->tempImageFile->close();
}
else { // small image; just load it in memory.
......
......@@ -51,7 +51,7 @@ public:
enum ImageQuality {
LowQuality, // 50ppi
MediumQuality, // 100ppi
FullQuality // upto 150ppi
HighQuality // upto 150ppi
};
/**
......@@ -95,15 +95,10 @@ public:
*/
QPixmap pixmap();
/**
* Set a url as location. Returned with the location() getter.
* This data member does not change the internal behavior.
*/
void setUrl(const KUrl &location);
/**
* Return the location as set on setUrl()
*/
KUrl location() const;
KUrl imageLocation() const;
/// If using SaveInStore, the collection will set a url-like location using this method.
void setStoreHref(const QString &href);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment