mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-27 22:27:46 +00:00
18 lines
387 B
C++
18 lines
387 B
C++
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
#include "hexpart.h"
|
||
|
|
||
|
#include "document/buffer/qmemoryrefbuffer.h"
|
||
|
|
||
|
HexPart::HexPart(QWidget *parent)
|
||
|
: QHexView(parent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void HexPart::loadFile(physis_Buffer buffer)
|
||
|
{
|
||
|
setDocument(QHexDocument::fromMemory<QMemoryRefBuffer>(reinterpret_cast<char *>(buffer.data), buffer.size));
|
||
|
setReadOnly(true);
|
||
|
}
|