Changeset View
Changeset View
Standalone View
Standalone View
importer/importer.cpp
Context not available. | |||||
51 | { | 51 | { | ||
---|---|---|---|---|---|
52 | Importer* q; | 52 | Importer* q; | ||
53 | QWidget* mAuthWindow; | 53 | QWidget* mAuthWindow; | ||
54 | std::auto_ptr<FileNameFormater> mFileNameFormater; | 54 | std::unique_ptr<FileNameFormater> mFileNameFormater; | ||
55 | QUrl mTempImportDirUrl; | 55 | QUrl mTempImportDirUrl; | ||
56 | 56 | | |||
57 | /* @defgroup reset Should be reset in start() | 57 | /* @defgroup reset Should be reset in start() | ||
Context not available. | |||||
112 | QUrl dst = src.resolved(QUrl("..")); | 112 | QUrl dst = src.resolved(QUrl("..")); | ||
113 | QString fileName; | 113 | QString fileName; | ||
114 | if (mFileNameFormater.get()) { | 114 | if (mFileNameFormater.get()) { | ||
115 | KFileItem item(KFileItem::Unknown, KFileItem::Unknown, src, true /* delayedMimeTypes */); | 115 | KFileItem item(src); | ||
116 | item.setDelayedMimeTypes(true); | ||||
116 | // Get the document time, but do not cache the result because the | 117 | // Get the document time, but do not cache the result because the | ||
117 | // 'src' url is temporary: if we import "foo/image.jpg" and | 118 | // 'src' url is temporary: if we import "foo/image.jpg" and | ||
118 | // "bar/image.jpg", both images will be temporarily saved in the | 119 | // "bar/image.jpg", both images will be temporarily saved in the | ||
Context not available. |