From 38f2cec867a508b76299a8838337c271acf087c4 Mon Sep 17 00:00:00 2001 From: buull Date: Mon, 6 Sep 2010 21:26:25 +0400 Subject: [PATCH] images path now relative --- ADeditor/mainwindow.cpp | 9 ++++++++- data2.xml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ADeditor/mainwindow.cpp b/ADeditor/mainwindow.cpp index 248bf94..0b21f2c 100644 --- a/ADeditor/mainwindow.cpp +++ b/ADeditor/mainwindow.cpp @@ -955,11 +955,18 @@ void MainWindow::on_pbImgAdd_clicked() { int id = adloader->animations.values().at(ui->lvAnimations->currentIndex().row()).id; QFileDialog fd; + QStringList strl; fd.setNameFilter(tr("Images (*.png)")); fd.setFileMode(QFileDialog::ExistingFiles); + QDir dir; if (fd.exec()) { - adloader->animations[id].pathes.append(fd.selectedFiles()); + strl = fd.selectedFiles(); + for (int i=0; ianimations[id].pathes.append(strl); refresh_lwImages(adloader->animations.value(id).pathes); isSaved = false; } diff --git a/data2.xml b/data2.xml index b2a2956..babd331 100644 --- a/data2.xml +++ b/data2.xml @@ -25,7 +25,7 @@ - + @@ -103,12 +103,12 @@ - - - - - - - + + + + + + +