kstring.hpp 348 B

1234567891011121314151617
  1. #ifndef __KSTRING_HPP__
  2. #define __KSTRING_HPP__
  3. #include <QString>
  4. /**
  5. * @brief The KString class
  6. * Solves the interface problem with FlatBuffers, which seems designed to work best with std::string
  7. */
  8. class KString : public QString {
  9. public:
  10. const char* c_str() const {
  11. return toUtf8().constData();
  12. }
  13. };
  14. #endif // __KSTRING_HPP__