WidgetHandler.cpp
Go to the documentation of this file.
1 #include "WidgetHandler.h"
2 
3 #include <QString>
4 
5 namespace armarx::RemoteGui
6 {
7  std::string toUtf8(QString const& qstring)
8  {
9  return std::string(qstring.toUtf8().constData());
10  }
11 
12  QString toQString(std::string const& string)
13  {
14  return QString::fromUtf8(string.c_str());
15  }
16 }
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
armarx::RemoteGui::toUtf8
std::string toUtf8(QString const &qstring)
Definition: WidgetHandler.cpp:7
WidgetHandler.h
armarx::RemoteGui::toQString
QString toQString(std::string const &string)
Definition: WidgetHandler.cpp:12