Go to the documentation of this file.
3 #include <QTreeWidgetItem>
36 return new QTreeWidgetItem(QStringList{QString::fromStdString(key)});
41 QTreeWidgetItem* item =
new QTreeWidgetItem();
48 item->setText(
columnKey, QString::fromStdString(key));
50 item->setText(
columnType, QString::fromStdString(typeName));
68 builder.
setCompareFn([](
const std::string & key, QTreeWidgetItem * item)
83 builder.
setCompareFn([](
size_t key, QTreeWidgetItem * item)
101 std::vector<size_t>
index;
103 for (
size_t i = 0; i < size; ++i)
std::string sanitizeTypeName(const std::string &typeName)
void setRowTexts(QTreeWidgetItem *item, const std::string &key, const std::string &value, const std::string &typeName="") const
ListBuilder getListBuilder() const
virtual ~DataTreeBuilderBase()
void setColumns(int key, int value, int type)
std::shared_ptr< Variant > VariantPtr
std::shared_ptr< Value > value()
DictBuilder getDictBuilder() const
static std::string getValue(const data::VariantPtr &n)
int compare(const T &lhs, const T &rhs)
QTreeWidgetItem * makeItem(const std::string &key) const
#define ARMARX_CHECK_EQUAL(lhs, rhs)
This macro evaluates whether lhs is equal (==) rhs and if it turns out to be false it will throw an E...
std::vector< size_t > getIndex(size_t size) const