MCPcopy Create free account
hub / github.com/clementgallet/libTAS / fromFile

Method fromFile

src/external/qhexview/src/model/qhexdocument.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63uchar QHexDocument::at(int offset) const { return m_buffer->at(offset); }
64
65QHexDocument* QHexDocument::fromFile(QString filename, QObject* parent) {
66 QFile f(filename);
67 f.open(QFile::ReadOnly);
68 return QHexDocument::fromMemory<QMemoryBuffer>(f.readAll(), parent);
69}
70
71void QHexDocument::undo() {
72 m_undostack.undo();

Callers

nothing calls this directly

Calls 2

readAllMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected