Changeset View
Changeset View
Standalone View
Standalone View
imagemapchoosedialog.cpp
Context not available. | |||||
17 | #include "imagemapchoosedialog.h" | 17 | #include "imagemapchoosedialog.h" | ||
---|---|---|---|---|---|
18 | 18 | | |||
19 | #include <QDialogButtonBox> | 19 | #include <QDialogButtonBox> | ||
20 | #include <QDir> | ||||
20 | #include <QLineEdit> | 21 | #include <QLineEdit> | ||
21 | #include <QListWidget> | 22 | #include <QListWidget> | ||
22 | #include <QLabel> | 23 | #include <QLabel> | ||
Context not available. | |||||
34 | QWidget* parent, | 35 | QWidget* parent, | ||
35 | QList<MapTag*> _maps, | 36 | QList<MapTag*> _maps, | ||
36 | QList<ImageTag*> _images, | 37 | QList<ImageTag*> _images, | ||
37 | const KUrl & _baseUrl) | 38 | const QUrl &_baseUrl) | ||
38 | : QDialog(parent) | 39 | : QDialog(parent) | ||
39 | { | 40 | { | ||
40 | qCDebug(KIMAGEMAPEDITOR_LOG) << "ImageMapChooseDialog::ImageMapChooseDialog"; | 41 | qCDebug(KIMAGEMAPEDITOR_LOG) << "ImageMapChooseDialog::ImageMapChooseDialog"; | ||
Context not available. | |||||
203 | if (images.at(i)->contains("src")) { | 204 | if (images.at(i)->contains("src")) { | ||
204 | QString str = images.at(i)->value("src"); | 205 | QString str = images.at(i)->value("src"); | ||
205 | // relative url | 206 | // relative url | ||
206 | pixUrl=KUrl(baseUrl,str); | 207 | pixUrl=QUrl(QDir(baseUrl.path()).filePath(str)); | ||
207 | pix=QImage(pixUrl.path()); | 208 | pix=QImage(pixUrl.path()); | ||
208 | double zoom1=1; | 209 | double zoom1=1; | ||
209 | double zoom2=1; | 210 | double zoom2=1; | ||
Context not available. |