MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / addUUIDItem

Function addUUIDItem

vulkanCapsViewer.cpp:1139–1151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1137}
1138
1139void addUUIDItem(QStandardItem* parent, const QString& key, uint8_t* UUID)
1140{
1141 std::ostringstream ss;
1142 ss << std::hex << std::noshowbase << std::uppercase;
1143 for (uint32_t i = 0; i < VK_UUID_SIZE; i++) {
1144 if (i == 4 || i == 6 || i == 8 || i == 10) ss << '-';
1145 ss << std::right << std::setw(2) << std::setfill('0') << static_cast<unsigned short>(UUID[i]);
1146 }
1147 QList<QStandardItem*> item;
1148 item << new QStandardItem(key);
1149 item << new QStandardItem(QString::fromStdString(ss.str()));
1150 parent->appendRow(item);
1151}
1152
1153void addUUIDItem(QStandardItem* parent, const QVariantMap::const_iterator& iterator)
1154{

Callers 2

addPropertiesRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected