diff --git a/src/gui/qt/qthelper/qthelper.cpp b/src/gui/qt/qthelper/qthelper.cpp new file mode 100644 index 00000000..3c8273ca --- /dev/null +++ b/src/gui/qt/qthelper/qthelper.cpp @@ -0,0 +1,30 @@ +// +// C++ Implementation: qthelper +// +// Description: +// +// +// Author: FThauer FHammer , (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "qthelper.h" + +QtHelper::QtHelper() +{ +} + + +QtHelper::~QtHelper() +{ +} + +std::string QtHelper::stringToUtf8(const std::string &myString) { + + QString tmpString = QString::fromStdString(myString); + std::string myUtf8String = tmpString.toUtf8().constData(); + + return myUtf8String; +} + diff --git a/src/gui/qt/qthelper/qthelper.h b/src/gui/qt/qthelper/qthelper.h new file mode 100644 index 00000000..49ba2cb5 --- /dev/null +++ b/src/gui/qt/qthelper/qthelper.h @@ -0,0 +1,29 @@ +// +// C++ Interface: qthelper +// +// Description: +// +// +// Author: FThauer FHammer , (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef QTHELPER_H +#define QTHELPER_H + +#include +/** + @author FThauer FHammer +*/ +class QtHelper{ +public: + QtHelper(); + + ~QtHelper(); + + std::string stringToUtf8(const std::string &); + +}; + +#endif