port punetwiin to QT 6

This commit is contained in:
martravi 2024-07-20 01:28:07 +02:00
parent 8bb6f5d1b7
commit d3547bc68e

View File

@ -93,7 +93,7 @@ void PrintColoredString( const char *msg, int highlite )
else else
{ {
QString str( msg ); QString str( msg );
QStringList list = str.split( "\n", QString::SkipEmptyParts ); QStringList list = str.split( "\n", Qt::SkipEmptyParts );
foreach( QString s, list ) foreach( QString s, list )
{ {
QString m = s; QString m = s;
@ -343,7 +343,7 @@ void CopyItemChildren( QTreeWidgetItem *item )
if( (quint32)stuff.size() != size ) if( (quint32)stuff.size() != size )
{ {
DumpItem( ch ); DumpItem( ch );
qCritical() << hex << (quint32)stuff.size() << "!=" << size; qCritical() << Qt::hex << (quint32)stuff.size() << "!=" << size;
Fail( "Error reading data for " + path ); Fail( "Error reading data for " + path );
} }
} }
@ -385,7 +385,6 @@ int main( int argc, char *argv[] )
if( args.contains( "-about", Qt::CaseInsensitive ) ) if( args.contains( "-about", Qt::CaseInsensitive ) )
About(); About();
if( args.size() < 3 ) if( args.size() < 3 )
Usage(); Usage();