diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-10 18:28:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-10 18:28:51 (GMT) |
commit | 49a288cd34f604ed13e1eff7b48bcfc6d6286169 (patch) | |
tree | 0ca95d4bfba42e4dc89f1b6f770a34bc6977a4af /src/value.cc | |
parent | fd9dd04f5064a9a21f593670fdcc073fdc14dbfc (diff) | |
parent | d545a227260ddd72b1fdb5c3dc2ebb1bae36c410 (diff) |
Merge branch 'noqt' into testing
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 8 |
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; } |