summaryrefslogtreecommitdiff
path: root/gatoperipheral.cpp
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-05-12 15:38:27 +0200
committerJavier <dev.git@javispedro.com>2014-05-12 15:38:27 +0200
commit4ae204db158a82a663565d9377d6afc7af39d1ce (patch)
tree2017adea4205e44ac992776020a4c78420d2b975 /gatoperipheral.cpp
parentff9fd605200825322beed8f86df765b70370b9d3 (diff)
downloadlibgato-4ae204db158a82a663565d9377d6afc7af39d1ce.tar.gz
libgato-4ae204db158a82a663565d9377d6afc7af39d1ce.zip
qt5 fixes
Diffstat (limited to 'gatoperipheral.cpp')
-rw-r--r--gatoperipheral.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatoperipheral.cpp b/gatoperipheral.cpp
index 0228471..c4339ec 100644
--- a/gatoperipheral.cpp
+++ b/gatoperipheral.cpp
@@ -452,7 +452,7 @@ void GatoPeripheralPrivate::parseName(bool complete, quint8 data[], int len)
{
Q_Q(GatoPeripheral);
if (complete || !complete_name) {
- name = QString::fromAscii(reinterpret_cast<char*>(data), len);
+ name = QString::fromUtf8(reinterpret_cast<char*>(data), len);
complete_name = complete;
emit q->nameChanged();
}