mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Merge latest fixes from stable branch
This commit is contained in:
@@ -59,6 +59,14 @@ public:
|
||||
return QString::fromLocal8Bit(str);
|
||||
}
|
||||
|
||||
static inline QString toQStringU(std::string str) {
|
||||
return QString::fromUtf8(str.c_str());
|
||||
}
|
||||
|
||||
static inline QString toQStringU(char* str) {
|
||||
return QString::fromUtf8(str);
|
||||
}
|
||||
|
||||
static inline QString toQString(sha1_hash hash) {
|
||||
std::ostringstream o;
|
||||
o << hash;
|
||||
|
||||
Reference in New Issue
Block a user