| 20 | namespace |
| 21 | { |
| 22 | QString getAddressString(const MemWatchEntry* const entry) |
| 23 | { |
| 24 | std::stringstream ss; |
| 25 | if (entry->isBoundToPointer()) |
| 26 | { |
| 27 | int level = static_cast<int>(entry->getPointerLevel()); |
| 28 | std::string strAddress = entry->getAddressStringForPointerLevel(level); |
| 29 | ss << "(" << level << "*)" << std::hex << std::uppercase << strAddress; |
| 30 | return QString::fromStdString(ss.str()); |
| 31 | } |
| 32 | u32 address = entry->getConsoleAddress(); |
| 33 | ss << std::hex << std::uppercase << address; |
| 34 | return QString::fromStdString(ss.str()); |
| 35 | } |
| 36 | } // namespace |
| 37 | |
| 38 | MemWatchModel::MemWatchModel(QObject* parent) : QAbstractItemModel(parent) |
no test coverage detected