diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 17:00:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 17:00:31 +0000 |
commit | 395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch) | |
tree | 9829cadb79d2cc7c29a940627fadb28b11e54150 /kfile-plugins/lnk/read_lnk.cpp | |
parent | 399f47c376fdf4d19192732a701ea9578d11619d (diff) | |
download | tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip |
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/lnk/read_lnk.cpp')
-rw-r--r-- | kfile-plugins/lnk/read_lnk.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kfile-plugins/lnk/read_lnk.cpp b/kfile-plugins/lnk/read_lnk.cpp index f65b657..645486e 100644 --- a/kfile-plugins/lnk/read_lnk.cpp +++ b/kfile-plugins/lnk/read_lnk.cpp @@ -33,27 +33,27 @@ struct LNKHeader { char magic[4]; char GUID[16]; - Q_UINT32 flags; - Q_UINT32 attributes; + TQ_UINT32 flags; + TQ_UINT32 attributes; char time1[8]; char time2[8]; char time3[8]; - Q_UINT32 length; - Q_UINT32 iconNum; - Q_UINT32 showWnd; - Q_UINT32 hotKey; + TQ_UINT32 length; + TQ_UINT32 iconNum; + TQ_UINT32 showWnd; + TQ_UINT32 hotKey; char filler[8]; }; struct LNKFileLocation { - Q_UINT32 totalLen; - Q_UINT32 ptr; - Q_UINT32 flags; - Q_UINT32 localVolume; - Q_UINT32 basePath; - Q_UINT32 netVolume; - Q_UINT32 pathname; + TQ_UINT32 totalLen; + TQ_UINT32 ptr; + TQ_UINT32 flags; + TQ_UINT32 localVolume; + TQ_UINT32 basePath; + TQ_UINT32 netVolume; + TQ_UINT32 pathname; }; //-------------------------------------------------------------------------------- @@ -97,7 +97,7 @@ bool readLNK(const KURL &url, LNKInfo &info) if ( header.flags & 0x1 ) // the shell item id list is present { - Q_UINT16 len; + TQ_UINT16 len; // skip that list if ( (fread(&len, sizeof(len), 1, fd) != 1) || (fseek(fd, len, SEEK_CUR) != 0) ) @@ -156,7 +156,7 @@ bool readLNK(const KURL &url, LNKInfo &info) { info.volumeName = (start + loc.localVolume + 0x10); // volume label - info.path = TQString::null; + info.path = TQString(); if ( *(start + loc.basePath) ) { @@ -182,8 +182,8 @@ bool readLNK(const KURL &url, LNKInfo &info) else // network path { info.path = TQString("%1\\%2") - .arg(start + loc.netVolume + 0x14) // network share name - .arg(start + loc.pathname); + .tqarg(start + loc.netVolume + 0x14) // network share name + .tqarg(start + loc.pathname); } delete [] data; @@ -191,7 +191,7 @@ bool readLNK(const KURL &url, LNKInfo &info) if ( header.flags & 0x4 ) // has description string { - Q_UINT16 len; + TQ_UINT16 len; if ( fread(&len, sizeof(len), 1, fd) != 1 ) { |