summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/dvi
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kfile-plugins/dvi
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/dvi')
-rw-r--r--kfile-plugins/dvi/kfile_dvi.cpp16
-rw-r--r--kfile-plugins/dvi/kfile_dvi.h3
2 files changed, 10 insertions, 9 deletions
diff --git a/kfile-plugins/dvi/kfile_dvi.cpp b/kfile-plugins/dvi/kfile_dvi.cpp
index e8fb7af7..1d035fa0 100644
--- a/kfile-plugins/dvi/kfile_dvi.cpp
+++ b/kfile-plugins/dvi/kfile_dvi.cpp
@@ -39,8 +39,8 @@
typedef KGenericFactory<KDviPlugin> DviFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_dvi, DviFactory("kfile_dvi"))
-KDviPlugin::KDviPlugin (TQObject * parent, const char * name, const TQStringList & preferredItems)
- : KFilePlugin(parent, name, preferredItems)
+KDviPlugin::KDviPlugin (TQObject * tqparent, const char * name, const TQStringList & preferredItems)
+ : KFilePlugin(tqparent, name, preferredItems)
{
kdDebug(7034) << "dvi plugin" << endl;
@@ -62,12 +62,12 @@ bool KDviPlugin::readInfo (KFileMetaInfo & info, uint /* what (unused in this pl
KFileMetaInfoGroup GeneralGroup = appendGroup(info, "General");
TQFile f(info.path());
TQFileInfo f_info;
- Q_UINT16 bytes_to_read;
- Q_UINT8 comment_length;
+ TQ_UINT16 bytes_to_read;
+ TQ_UINT8 comment_length;
TQString comment;
- Q_UINT16 pages;
- Q_UINT8 buffer[270]; // buffer for reading data; no data is read with more than 270 bytes
- Q_UINT32 ptr;
+ TQ_UINT16 pages;
+ TQ_UINT8 buffer[270]; // buffer for reading data; no data is read with more than 270 bytes
+ TQ_UINT32 ptr;
int i; // running index
// open file and try to get the comment
@@ -79,7 +79,7 @@ bool KDviPlugin::readInfo (KFileMetaInfo & info, uint /* what (unused in this pl
}
f_info.setFile(f); // create fileinfoobject
- bytes_to_read = QMIN(f_info.size(), 270); // check, if the file size is smaller than 270 bytes
+ bytes_to_read = TQMIN(f_info.size(), 270); // check, if the file size is smaller than 270 bytes
// (if the comment is as large as possible, we don't have to
// read more than 270 bytes)
diff --git a/kfile-plugins/dvi/kfile_dvi.h b/kfile-plugins/dvi/kfile_dvi.h
index 60326144..aba32132 100644
--- a/kfile-plugins/dvi/kfile_dvi.h
+++ b/kfile-plugins/dvi/kfile_dvi.h
@@ -28,8 +28,9 @@ class TQStringList;
class KDviPlugin : public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDviPlugin ( TQObject * parent, const char * name, const TQStringList & preferredItems );
+ KDviPlugin ( TQObject * tqparent, const char * name, const TQStringList & preferredItems );
virtual bool readInfo (KFileMetaInfo & info, uint what);
};