aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-03-22 10:22:42 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-25 09:20:10 +0100
commit7e591c19e70a151390eb2c0f83c3836178b76ee6 (patch)
treeb87e0b157f77e829de24d90b6461381f7cf67581 /src/qt/guiutil.h
parente3f5d4338d0305a398817279e36ef2d0cfd2fd2b (diff)
qt: Do proper boost::path conversion
Convert from QString unicode from/to the OS-dependent locale as used by boost::filesystem::path as needed. Solves #3916.
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 26202e8d41..d1d18bb5f3 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -11,6 +11,8 @@
#include <QTableView>
#include <QHeaderView>
+#include <boost/filesystem.hpp>
+
class QValidatedLineEdit;
class SendCoinsRecipient;
@@ -164,6 +166,12 @@ namespace GUIUtil
/** Restore window size and position */
void restoreWindowGeometry(const QString& strSetting, const QSize &defaultSizeIn, QWidget *parent);
+ /* Convert QString to OS specific boost path through UTF-8 */
+ boost::filesystem::path qstringToBoostPath(const QString &path);
+
+ /* Convert OS specific boost path to QString through UTF-8 */
+ QString boostPathToQString(const boost::filesystem::path &path);
+
} // namespace GUIUtil
#endif // GUIUTIL_H