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
8  toUtf8(QString const& qstring)
9  {
10  return std::string(qstring.toUtf8().constData());
11  }
12 
13  QString
14  toQString(std::string const& string)
15  {
16  return QString::fromUtf8(string.c_str());
17  }
18 } // namespace armarx::RemoteGui
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
armarx::RemoteGui::toUtf8
std::string toUtf8(QString const &qstring)
Definition: WidgetHandler.cpp:8
WidgetHandler.h
armarx::RemoteGui::toQString
QString toQString(std::string const &string)
Definition: WidgetHandler.cpp:14