From 9d6927a7d6a543332f828bffedf65eecf6774c6d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:33:27 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/piklab-hex/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/piklab-hex/main.cpp') diff --git a/src/piklab-hex/main.cpp b/src/piklab-hex/main.cpp index 0d9a7cc..70796bb 100644 --- a/src/piklab-hex/main.cpp +++ b/src/piklab-hex/main.cpp @@ -115,7 +115,7 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) if ( _device==0 ) return okExit(i18n("Hex file is valid.")); TQStringList warnings; Device::Memory::WarningTypes wtypes = _memory->fromHexBuffer(_source1, warnings); - if ( wtypes==Device::Memory::NoWarning ) return okExit(i18n("Hex file is compatible with device \"%1\".").tqarg(_device->name())); + if ( wtypes==Device::Memory::NoWarning ) return okExit(i18n("Hex file is compatible with device \"%1\".").arg(_device->name())); return errorExit(warnings.join("\n"), EXEC_ERROR); } if ( command=="info" ) { @@ -169,7 +169,7 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) if ( firstInSecond && secondInFirst ) return okExit(i18n("The two hex files have the same content.")); if (firstInSecond) log(Log::LineType::Information, i18n("The first hex file is a subset of the second one.")); if (secondInFirst) log(Log::LineType::Information, i18n("The second hex file is a subset of the first one.")); - return errorExit(i18n("The two hex files are different at address %1.").tqarg(toHexLabel(it.key(), 8)), EXEC_ERROR); + return errorExit(i18n("The two hex files are different at address %1.").arg(toHexLabel(it.key(), 8)), EXEC_ERROR); } if ( command=="checksum" ) { TQStringList warnings; @@ -177,10 +177,10 @@ CLI::ExitCode CLI::Main::executeCommand(const TQString &command) for (uint i=0; ichecksum(); - log(Log::LineType::Normal, i18n("Checksum: %1").tqarg(toHexLabel(cs, 4))); + log(Log::LineType::Normal, i18n("Checksum: %1").arg(toHexLabel(cs, 4))); if ( _device->group().name()=="pic" ) { BitValue ucs = static_cast(_memory)->unprotectedChecksum(); - if ( ucs!=cs ) log(Log::LineType::Information, i18n("Unprotected checksum: %1").tqarg(toHexLabel(ucs, 4))); + if ( ucs!=cs ) log(Log::LineType::Information, i18n("Unprotected checksum: %1").arg(toHexLabel(ucs, 4))); } return OK; } @@ -220,7 +220,7 @@ CLI::ExitCode CLI::Main::executeSetCommand(const TQString &property, const TQStr } TQString s = value.upper(); _device = Device::lister().data(s); - if ( _device==0 ) return errorExit(i18n("Unknown device \"%1\".").tqarg(s), ARG_ERROR); + if ( _device==0 ) return errorExit(i18n("Unknown device \"%1\".").arg(s), ARG_ERROR); return OK; } if ( property=="fill" ) { @@ -232,7 +232,7 @@ CLI::ExitCode CLI::Main::executeSetCommand(const TQString &property, const TQStr if ( !ok ) return errorExit(i18n("Number format not recognized."), ARG_ERROR); return OK; } - return errorExit(i18n("Unknown property \"%1\".").tqarg(property), ARG_ERROR); + return errorExit(i18n("Unknown property \"%1\".").arg(property), ARG_ERROR); } TQString CLI::Main::executeGetCommand(const TQString &property) @@ -245,7 +245,7 @@ TQString CLI::Main::executeGetCommand(const TQString &property) if ( _fill.isEmpty() ) return i18n(""); return _fill; } - log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").tqarg(property)); + log(Log::LineType::SoftError, i18n("Unknown property \"%1\".").arg(property)); return TQString(); } -- cgit v1.2.1