diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /tools/qvfb | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'tools/qvfb')
-rw-r--r-- | tools/qvfb/main.cpp | 2 | ||||
-rw-r--r-- | tools/qvfb/qanimationwriter.cpp | 4 | ||||
-rw-r--r-- | tools/qvfb/qvfbview.cpp | 22 |
3 files changed, 14 insertions, 14 deletions
diff --git a/tools/qvfb/main.cpp b/tools/qvfb/main.cpp index aa408fa64..552515840 100644 --- a/tools/qvfb/main.cpp +++ b/tools/qvfb/main.cpp @@ -86,7 +86,7 @@ int main( int argc, char *argv[] ) displayId = displaySpec.mid( m+1, rx.matchedLength()-1 ).toInt(); } - qDebug( "Using display %d", displayId ); + tqDebug( "Using display %d", displayId ); TQVFb mw( displayId, width, height, depth, skin ); app.setMainWidget( &mw ); diff --git a/tools/qvfb/qanimationwriter.cpp b/tools/qvfb/qanimationwriter.cpp index 8a3c32cca..9ae1e8690 100644 --- a/tools/qvfb/qanimationwriter.cpp +++ b/tools/qvfb/qanimationwriter.cpp @@ -251,7 +251,7 @@ public: TQAnimationWriter::TQAnimationWriter( const TQString& filename, const char* format ) { if ( TQCString(format) != "MNG" ) { - qWarning("Format \"%s\" not supported, only MNG", format); + tqWarning("Format \"%s\" not supported, only MNG", format); dev = 0; d = 0; } else { @@ -389,7 +389,7 @@ void TQAnimationWriter::appendFrame(const TQImage& frm, const TQPoint& offset) } } } -qDebug("%d,%d %d,%d",minx,miny,offset.x(),offset.y()); +tqDebug("%d,%d %d,%d",minx,miny,offset.x(),offset.y()); d->composeImage(diff,TQPoint(minx,miny)+offset); } if ( prev.isNull() || prev.size() == frame.size() && offset == TQPoint(0,0) ) { diff --git a/tools/qvfb/qvfbview.cpp b/tools/qvfb/qvfbview.cpp index 1532fe36c..a23bab69b 100644 --- a/tools/qvfb/qvfbview.cpp +++ b/tools/qvfb/qvfbview.cpp @@ -88,7 +88,7 @@ TQVFbView::TQVFbView( int display_id, int w, int h, int d, TQWidget *parent, break; default: - qFatal( "Unsupported bit depth %d\n", d ); + tqFatal( "Unsupported bit depth %d\n", d ); } mousePipe = TQString(QT_VFB_MOUSE_PIPE).arg(display_id); @@ -99,14 +99,14 @@ TQVFbView::TQVFbView( int display_id, int w, int h, int d, TQWidget *parent, mouseFd = open( mousePipe.latin1(), O_RDWR | O_NDELAY ); if ( mouseFd == -1 ) { - qFatal( "Cannot open mouse pipe" ); + tqFatal( "Cannot open mouse pipe" ); } unlink( keyboardPipe ); mkfifo( keyboardPipe, 0666 ); keyboardFd = open( keyboardPipe, O_RDWR | O_NDELAY ); if ( keyboardFd == -1 ) { - qFatal( "Cannot open keyboard pipe" ); + tqFatal( "Cannot open keyboard pipe" ); } key_t key = ftok( mousePipe.latin1(), 'b' ); @@ -129,7 +129,7 @@ TQVFbView::TQVFbView( int display_id, int w, int h, int d, TQWidget *parent, } if ( (long)data == -1 ) - qFatal( "Cannot attach to shared memory" ); + tqFatal( "Cannot attach to shared memory" ); hdr = (TQVFbHeader *)data; hdr->width = w; @@ -215,7 +215,7 @@ void TQVFbView::setGamma(double gr, double gg, double gb) if ( g > 255 ) g = 255; if ( b > 255 ) b = 255; gammatable[i] = tqRgb(r,g,b); -//qDebug("%d: %d,%d,%d",i,r,g,b); +//tqDebug("%d: %d,%d,%d",i,r,g,b); } setDirty(rect()); @@ -282,25 +282,25 @@ static TQString qws_dataDir() TQString dataDir = "/tmp/qtembedded-" + username; if ( mkdir( dataDir.latin1(), 0700 ) ) { if ( errno != EEXIST ) { - qFatal( TQString("Cannot create TQt/Embedded data directory: %1") + tqFatal( TQString("Cannot create TQt/Embedded data directory: %1") .arg( dataDir ) ); } } struct stat buf; if ( lstat( dataDir.latin1(), &buf ) ) - qFatal( TQString( "stat failed for TQt/Embedded data directory: %1" ) + tqFatal( TQString( "stat failed for TQt/Embedded data directory: %1" ) .arg( dataDir ) ); if ( !S_ISDIR( buf.st_mode ) ) - qFatal( TQString( "%1 is not a directory" ).arg( dataDir ) ); + tqFatal( TQString( "%1 is not a directory" ).arg( dataDir ) ); if ( buf.st_uid != getuid() ) - qFatal( TQString( "TQt/Embedded data directory is not owned by user %1" ) + tqFatal( TQString( "TQt/Embedded data directory is not owned by user %1" ) .arg( getuid() ) ); if ( (buf.st_mode & 0677) != 0600 ) - qFatal( TQString( "TQt/Embedded data directory has incorrect permissions: %1" ) + tqFatal( TQString( "TQt/Embedded data directory has incorrect permissions: %1" ) .arg( dataDir ) ); dataDir += "/"; @@ -485,7 +485,7 @@ void TQVFbView::drawScreen() TQRect r( hdr->update ); hdr->dirty = FALSE; hdr->update = TQRect(); - // qDebug( "update %d, %d, %dx%d", r.y(), r.x(), r.width(), r.height() ); + // tqDebug( "update %d, %d, %dx%d", r.y(), r.x(), r.width(), r.height() ); r = r.intersect( TQRect(0, 0, hdr->width, hdr->height ) ); if ( !r.isEmpty() ) { if ( int(zm) != zm ) { |