summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-04-12 04:13:09 (GMT)
committerMarius Kintel <marius@kintel.net>2013-04-12 04:13:09 (GMT)
commit60a351a5ee593aee68716dfa76e9ee4f4b767e9f (patch)
tree374e7104bec631f64187010ba8c2521ba95a3fb7 /src/value.cc
parent6de88962556c5343f6b8db7fdfe4233c50ba2953 (diff)
parentf242a7a6934effdb292c0fedafa954bafc615cc3 (diff)
Merge branch 'noqt'
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