Skip to content

Commit

Permalink
Update file(s): 2024-08-21
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Aug 21, 2024
1 parent 3437c6f commit b6be303
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions formatwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ bool FormatWidget::_setTreeItem(QTreeWidget *pTree, QTreeWidgetItem *pItem, qint

void FormatWidget::setTreeItem(QTreeWidget *pTree, qint32 nID)
{
int nNumberOfItems = pTree->topLevelItemCount();
qint32 nNumberOfItems = pTree->topLevelItemCount();

for (qint32 i = 0; i < nNumberOfItems; i++) {
if (_setTreeItem(pTree, pTree->topLevelItem(i), nID)) {
Expand All @@ -711,7 +711,7 @@ QString FormatWidget::getInitString(QTreeWidgetItem *pItem)
{
QString sResult;

int nType = pItem->data(0, Qt::UserRole + FW_DEF::SECTION_DATA_TYPE).toInt();
qint32 nType = pItem->data(0, Qt::UserRole + FW_DEF::SECTION_DATA_TYPE).toInt();
qint64 nDataOffset = pItem->data(0, Qt::UserRole + FW_DEF::SECTION_DATA_OFFSET).toLongLong();
qint64 nDataSize = pItem->data(0, Qt::UserRole + FW_DEF::SECTION_DATA_SIZE).toLongLong();

Expand Down Expand Up @@ -1077,7 +1077,7 @@ qint32 FormatWidget::getColumnWidth(QWidget *pParent, FormatWidget::CW cw, XBina
{
qint32 nResult = 0;

int nSymbolWidth = XLineEditHEX::getSymbolWidth(pParent);
qint32 nSymbolWidth = XLineEditHEX::getSymbolWidth(pParent);

if (cw == CW_UINTMODE) {
switch (mode) {
Expand Down Expand Up @@ -1116,8 +1116,8 @@ XADDR FormatWidget::getDisasmInitAddress()

QStandardItemModel *FormatWidget::getHeaderTableModel(QTableWidget *pTableWidget)
{
int nNumberOfColumns = pTableWidget->columnCount();
int nNumberOfRows = pTableWidget->rowCount();
qint32 nNumberOfColumns = pTableWidget->columnCount();
qint32 nNumberOfRows = pTableWidget->rowCount();

QStandardItemModel *pResult = new QStandardItemModel(nNumberOfRows, nNumberOfColumns);

Expand Down

0 comments on commit b6be303

Please sign in to comment.