mirror of
https://github.com/hasherezade/pe-bear
synced 2026-08-22 22:29:04 -04:00
[REFACT] Refactored for compatibility with Qt4
This commit is contained in:
parent
3aab73fe4e
commit
431be073ee
3 changed files with 11 additions and 6 deletions
|
|
@ -156,11 +156,16 @@ void HexItemDelegate::paint(QPainter* painter,
|
|||
//--------------------------------------------------------------------
|
||||
|
||||
HexTableView::HexTableView(QWidget *parent)
|
||||
: ExtTableView(parent), hexModel(NULL), hexColWidth(COL_WIDTH), m_delegate(NULL)
|
||||
: ExtTableView(parent), hexModel(nullptr), hexColWidth(COL_WIDTH), m_delegate(nullptr),
|
||||
followAddrSubmenu(nullptr), backAction(nullptr), undoAction(nullptr)
|
||||
{
|
||||
for (int i = 0; i < static_cast<int>(Executable::ADDR_TYPE_COUNT); ++i) {
|
||||
followAction[i] = nullptr;
|
||||
}
|
||||
|
||||
this->vHdr = new OffsetHeader(this);
|
||||
hHdr = new QHeaderView(Qt::Horizontal, this);
|
||||
|
||||
this->hHdr = new QHeaderView(Qt::Horizontal, this);
|
||||
|
||||
this->setVerticalHeader(vHdr);
|
||||
this->setHorizontalHeader(hHdr);
|
||||
vHdr->setVisible(true);
|
||||
|
|
@ -278,7 +283,7 @@ void HexTableView::initMenu()
|
|||
followAddrSubmenu->addAction(followAction[Executable::VA]);
|
||||
connect(followAction[Executable::VA], SIGNAL(triggered()), this, SLOT(followSelectedVa()));
|
||||
|
||||
connect(menu, &QMenu::aboutToShow, this, &HexTableView::updateFollowAction);
|
||||
connect(menu, SIGNAL(aboutToShow()), this, SLOT(updateFollowAction()));
|
||||
}
|
||||
|
||||
void HexTableView::initHeader()
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ protected:
|
|||
void setSelectionColor(const QColor& bgColor, const QColor& textColor);
|
||||
|
||||
QMenu* followAddrSubmenu;
|
||||
QAction* followAction[Executable::ADDR_TYPE_COUNT] = { nullptr };
|
||||
QAction* followAction[Executable::ADDR_TYPE_COUNT];
|
||||
QAction *backAction, *undoAction;
|
||||
|
||||
OffsetHeader* vHdr;
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ void DiffWindow::createActions()
|
|||
connect(setHexView, SIGNAL(triggered(bool)), &hexDumpModelR, SLOT(setHexView(bool)) );
|
||||
|
||||
this->nextDiff = new QAction("Next Diff", this);
|
||||
connect(nextDiff, &QAction::triggered, this, &DiffWindow::onNextDiff);
|
||||
connect(nextDiff, SIGNAL(triggered()), this, SLOT(onNextDiff()));
|
||||
}
|
||||
|
||||
void DiffWindow::onNextDiff()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue