From 9ccfff69d97229542173f9152a8f2dc9021b0010 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 23 Jul 2017 14:09:20 +0200 Subject: [PATCH] Add helper file `common.hpp` The file currently contains function `qS(...)` which is an alias for `QString::fromStdString(...)` --- src/common.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/common.hpp diff --git a/src/common.hpp b/src/common.hpp new file mode 100644 index 000000000..58748e166 --- /dev/null +++ b/src/common.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include + +#include + +namespace chatterino { + +inline QString qS(const std::string &string) +{ + return QString::fromStdString(string); +} + +} // namespace chatterino