cmd.character = (uchar) dataAt(position);
cmd.highNibble = highNibble;
- if (!highNibble && !m_undoStack.isEmpty() && m_undoStack.top().position == position && m_undoStack.top().highNibble) {
+ if (!highNibble
+ && !m_undoStack.isEmpty()
+ && m_undoStack.top().position == position
+ && m_undoStack.top().highNibble) {
// compress
cmd.character = m_undoStack.top().character;
m_undoStack.pop();
m_canRequestNewWindow = true;
}
+void BinEditor::updateContents()
+{
+ setLazyData(baseAddress() + cursorPosition(), dataSize(), m_blockSize);
+}
+
QPoint BinEditor::offsetToPos(int offset)
{
const int x = m_labelWidth + (offset % 16) * m_columnWidth;
inline int lazyDataBlockSize() const { return m_blockSize; }
Q_INVOKABLE void addLazyData(quint64 block, const QByteArray &data);
Q_INVOKABLE void setNewWindowRequestAllowed();
+ Q_INVOKABLE void updateContents();
bool save(const QString &oldFileName, const QString &newFileName);
void zoomIn(int range = 1);