Port symbolizer to Qt 6

This commit is contained in:
martravi 2024-07-20 14:07:26 +02:00
parent f8ebef3d9d
commit 6c36e10c18
5 changed files with 7 additions and 6 deletions

View File

@ -16,7 +16,7 @@
#include <QObject>
#include <QProcess>
#include <QQueue>
#include <QRegExp>
#include <QRegularExpression>
#include <QSettings>
#include <QtDebug>
#include <QTimer>

View File

@ -25,7 +25,7 @@ public:
private:
Ui::NgDialog *ui;
QRegExp hex;
QRegularExpression hex;
bool ValidNGID();
bool ValidNGKeyID();

View File

@ -14,7 +14,7 @@ bool ElfParser::ParseText( const QString &str )
QMap< QString, QStringList >rawFiles;
QMap< QString, QStringList >rawSections;
QMap< QString, QStringList >rawSymbolTable;
QStringList lines = str.split( '\n', QString::KeepEmptyParts );
QStringList lines = str.split( '\n', Qt::KeepEmptyParts );
quint32 lineCnt = lines.size();
for( quint32 i = 0; i < lineCnt; i++ )
{
@ -388,7 +388,7 @@ bool ElfParser::ParseFileText( const QStringList &strs, const QStringList &secti
{
qDebug() << "ref.off is busted 1" << name << str;
qDebug() << ::hex << refOff << fStart;
qDebug() << Qt::hex << refOff << fStart;
exit( 0 );
}
}

View File

@ -101,7 +101,7 @@ private:
// takes each file and separetes it into functions
bool ParseFileText( const QStringList &strs, const QStringList &sectionStrs, const QStringList &symbolStrs, File &file );
QRegExp funcStart;
QRegularExpression funcStart;
bool IsFunctionStart( const QString &str, quint32 *start = NULL );
// extract function name from the line that starts it

View File

@ -4,7 +4,8 @@
#
#-------------------------------------------------
QT += core
QT += core\
widgets
#QT -= gui