LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
qtutil.h File Reference
#include "sllconfig.h"
#include <QLatin1String>
+ Include dependency graph for qtutil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LC
 
namespace  LC::Util
 

Functions

template<typename Assoc >
auto LC::Util::Stlize (Assoc &&assoc)
 Converts an Qt's associative sequence assoc to an STL-like iteratable range.
 
QByteArray LC::Util::AsByteArray (std::string_view view)
 Convert the view into a QByteArray without copying.
 
QByteArray LC::Util::ToByteArray (std::string_view view)
 Create a QByteArray with the data referenced by the view.
 
std::string_view LC::Util::AsStringView (const QByteArray &arr)
 Create a std::string_view referring the data within a QByteArray.
 
constexpr QLatin1String LC::operator""_ql (const char *str, std::size_t size)