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 /src/kernel/qdragobject.cpp | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'src/kernel/qdragobject.cpp')
-rw-r--r-- | src/kernel/qdragobject.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/qdragobject.cpp b/src/kernel/qdragobject.cpp index 66e1c66cb..47f298b7d 100644 --- a/src/kernel/qdragobject.cpp +++ b/src/kernel/qdragobject.cpp @@ -814,7 +814,7 @@ TQTextCodec* findcodec(const TQMimeSource* e) const char* f; int i; for ( i=0; (f=e->format(i)); i++ ) { - bool html = !qstrnicmp(f, "text/html", 9); + bool html = !tqstrnicmp(f, "text/html", 9); if (html) r = codecForHTML(TQCString(e->encodedData(f))); if (!r) @@ -833,7 +833,7 @@ TQTextCodec* findcodec(const TQMimeSource* e) TQByteArray TQTextDrag::encodedData(const char* mime) const { TQCString r; - if ( 0==qstrnicmp(mime,"text/",5) ) { + if ( 0==tqstrnicmp(mime,"text/",5) ) { TQCString m(mime); m = m.lower(); TQTextCodec *codec = qt_findcharset(m); @@ -872,7 +872,7 @@ bool TQTextDrag::canDecode( const TQMimeSource* e ) { const char* f; for (int i=0; (f=e->format(i)); i++) { - if ( 0==qstrnicmp(f,"text/",5) ) { + if ( 0==tqstrnicmp(f,"text/",5) ) { return findcodec(e) != 0; } } @@ -912,7 +912,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp const char* mime; for (int i=0; (mime = e->format(i)); i++) { - if ( 0==qstrnicmp(mime,"text/",5) ) { + if ( 0==tqstrnicmp(mime,"text/",5) ) { TQCString m(mime); m = m.lower(); int semi = m.find(';'); @@ -920,7 +920,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp semi = m.length(); TQCString foundst = m.mid(5,semi-5); if ( subtype.isNull() || foundst == subtype ) { - bool html = !qstrnicmp(mime, "text/html", 9); + bool html = !tqstrnicmp(mime, "text/html", 9); TQTextCodec* codec = 0; if (html) { TQByteArray bytes = e->encodedData(mime); @@ -1087,7 +1087,7 @@ const char * TQImageDrag::format(int i) const */ TQByteArray TQImageDrag::encodedData(const char* fmt) const { - if ( qstrnicmp( fmt, "image/", 6 )==0 ) { + if ( tqstrnicmp( fmt, "image/", 6 )==0 ) { TQCString f = fmt+6; TQByteArray data; TQBuffer w( data ); @@ -1233,7 +1233,7 @@ TQStoredDrag::TQStoredDrag( const char* mimeType, TQWidget * dragSource, const c TQDragObject(dragSource,name) { d = new TQStoredDragData(); - d->fmt = qstrdup(mimeType); + d->fmt = tqstrdup(mimeType); } /*! @@ -1278,7 +1278,7 @@ void TQStoredDrag::setEncodedData( const TQByteArray & encodedData ) */ TQByteArray TQStoredDrag::encodedData(const char* m) const { - if ( !qstricmp(m,d->fmt) ) + if ( !tqstricmp(m,d->fmt) ) return d->enc; else return TQByteArray(); @@ -1588,7 +1588,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri) if (!uri) return file; - if (0==qstrnicmp(uri,"file:/",6)) // It is a local file uri + if (0==tqstrnicmp(uri,"file:/",6)) // It is a local file uri uri += 6; else if (TQString(uri).find(":/") != -1) // It is a different scheme uri return file; |