diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-12 04:13:09 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-12 04:13:09 (GMT) |
commit | 60a351a5ee593aee68716dfa76e9ee4f4b767e9f (patch) | |
tree | 374e7104bec631f64187010ba8c2521ba95a3fb7 /src/value.cc | |
parent | 6de88962556c5343f6b8db7fdfe4233c50ba2953 (diff) | |
parent | f242a7a6934effdb292c0fedafa954bafc615cc3 (diff) |
Merge branch 'noqt'
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; } |