diff options
Diffstat (limited to 'src/common/port/parallel.cpp')
-rw-r--r-- | src/common/port/parallel.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/port/parallel.cpp b/src/common/port/parallel.cpp index 46e395b..3d92ae0 100644 --- a/src/common/port/parallel.cpp +++ b/src/common/port/parallel.cpp @@ -59,12 +59,12 @@ TQStringList Port::Parallel::deviceList() TQStringList list; #if defined(HAVE_PPDEV) // standard parport in user space - for(int i = 0; i<8; ++i) list.append(TQString("/dev/parport%1").tqarg(i)); + for(int i = 0; i<8; ++i) list.append(TQString("/dev/parport%1").arg(i)); // new devfs parport flavour - for(int i = 0; i<8; ++i) list.append(TQString("/dev/parports/%1").tqarg(i)); + for(int i = 0; i<8; ++i) list.append(TQString("/dev/parports/%1").arg(i)); #elif defined(HAVE_PPBUS) // FreeBSD - for(int i = 0; i<8; ++i) list.append(TQString("/dev/ppi%1").tqarg(i)); + for(int i = 0; i<8; ++i) list.append(TQString("/dev/ppi%1").arg(i)); #endif return list; } @@ -166,17 +166,17 @@ bool Port::Parallel::internalOpen() #if defined(HAVE_PPDEV) _fd = ::open(_device.latin1(), O_RDWR); if ( _fd<0 ) { - setSystemError(i18n("Could not open device \"%1\"").tqarg(_device)); + setSystemError(i18n("Could not open device \"%1\"").arg(_device)); return false; } if ( ioctl(_fd, PPCLAIM)<0 ) { - setSystemError(i18n("Could not claim device \"%1\": check it is read/write enabled").tqarg(_device)); + setSystemError(i18n("Could not claim device \"%1\": check it is read/write enabled").arg(_device)); return false; } #elif defined(HAVE_PPBUS) _fd = ::open(_device.latin1(), O_RDWR); if ( _fd<0 ) { - setSystemError(i18n("Could not open device \"%1\"").tqarg(_device)); + setSystemError(i18n("Could not open device \"%1\"").arg(_device)); return false; } #endif @@ -208,7 +208,7 @@ bool Port::Parallel::setPinOn(uint pin, bool on, LogicType type) int request = REQUEST_DATA[rtype].write; Q_ASSERT( request!=0 ); if ( ioctl(_fd, request, &c)<0 ) { - setSystemError(i18n("Error setting pin %1 to %2").tqarg(PIN_DATA[pin].label).tqarg(on)); + setSystemError(i18n("Error setting pin %1 to %2").arg(PIN_DATA[pin].label).arg(on)); return false; } _images[rtype] = c; @@ -228,7 +228,7 @@ bool Port::Parallel::readPin(uint pin, LogicType type, bool &value) Q_ASSERT( request!=0 ); uchar c = 0; if ( ioctl(_fd, request, &c)<0 ) { - setSystemError(i18n("Error reading bit on pin %1").tqarg(PIN_DATA[pin].label)); + setSystemError(i18n("Error reading bit on pin %1").arg(PIN_DATA[pin].label)); return false; } _images[rtype] = c; @@ -240,7 +240,7 @@ bool Port::Parallel::readPin(uint pin, LogicType type, bool &value) void Port::Parallel::setSystemError(const TQString &message) { #if defined(HAVE_PPDEV) || defined(HAVE_PPBUS) - log(Log::LineType::Error, message + TQString(" (errno=%1).").tqarg(strerror(errno))); + log(Log::LineType::Error, message + TQString(" (errno=%1).").arg(strerror(errno))); #else Q_UNUSED(message); #endif |