summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-04-24 06:00:04 (GMT)
committerMarius Kintel <marius@kintel.net>2013-04-24 06:00:04 (GMT)
commit5f10c9f9c0a9805567ea8f9b560c6e0b50126119 (patch)
tree8869b03872b42ce1ffb1755958d05925f9f0bcb4 /src/value.cc
parent3307deee9361883a5297fbcac7f5a1cb428ed40c (diff)
parentf0ee85e17d474ab9119f82ee6f802d4634743b12 (diff)
Merge branch 'master' into issue217
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/value.cc b/src/value.cc
index f14f826..ebb825d 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -34,12 +34,14 @@
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/static_visitor.hpp>
#include <boost/format.hpp>
-
-#include <QtCore/QDir>
+#include "boost-utils.h"
+#include "boosty.h"
std::ostream &operator<<(std::ostream &stream, const Filename &filename)
{
- stream << QuotedString(QDir::current().relativeFilePath(QString::fromLocal8Bit(filename.c_str())).toLocal8Bit().constData());
+ fs::path fnpath = fs::path( (std::string)filename );
+ fs::path fpath = boostfs_uncomplete(fnpath, fs::current_path());
+ stream << QuotedString(boosty::stringy( fpath ));
return stream;
}
contact: Jan Huwald // Impressum