Add helper file common.hpp
The file currently contains function `qS(...)` which is an alias for `QString::fromStdString(...)`
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace chatterino {
|
||||||
|
|
||||||
|
inline QString qS(const std::string &string)
|
||||||
|
{
|
||||||
|
return QString::fromStdString(string);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace chatterino
|
||||||
Reference in New Issue
Block a user