summaryrefslogtreecommitdiffstats
path: root/kfax/faxinput.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kfax/faxinput.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfax/faxinput.cpp')
-rw-r--r--kfax/faxinput.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kfax/faxinput.cpp b/kfax/faxinput.cpp
index 8ca7fe85..47fdfa26 100644
--- a/kfax/faxinput.cpp
+++ b/kfax/faxinput.cpp
@@ -26,14 +26,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
#include <sys/time.h>
#include <fcntl.h>
#include "faxexpand.h"
-#include <qstring.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <klocale.h>
#include <kdebug.h>
void statusbarupdate(char* name,int width,int height,char* res);
-extern void kfaxerror(const QString& title, const QString& error);
+extern void kfaxerror(const TQString& title, const TQString& error);
#define FAXMAGIC "\000PC Research, Inc\000\000\000\000\000\000"
@@ -106,11 +106,11 @@ notetiff(const char *name)
int endian;
t32bits IFDoff;
struct pagenode *pn = NULL;
- QString str;
+ TQString str;
if ((tf = fopen(name, "r")) == NULL) {
- QString mesg = i18n("Unable to open:\n%1\n").arg(QFile::decodeName(name));
+ TQString mesg = i18n("Unable to open:\n%1\n").arg(TQFile::decodeName(name));
kfaxerror(i18n("Sorry"), mesg);
return 0;
}
@@ -147,7 +147,7 @@ notetiff(const char *name)
if (fseek(tf, IFDoff, SEEK_SET) < 0) {
realbad:
- str = i18n("Invalid tiff file:\n%1\n").arg(QFile::decodeName(name));
+ str = i18n("Invalid tiff file:\n%1\n").arg(TQFile::decodeName(name));
kfaxerror(i18n("Sorry"),str);
bad:
if (strips)
@@ -249,7 +249,7 @@ notetiff(const char *name)
case 279: /* StripByteCounts */
if (count != nstrips) {
str = i18n("In file %1\nStripsPerImage tag 273=%2,tag279=%3\n")
- .arg(QFile::decodeName(name)).arg(nstrips).arg(count);
+ .arg(TQFile::decodeName(name)).arg(nstrips).arg(count);
kfaxerror(i18n("Message"),str);
goto realbad;
}
@@ -395,7 +395,7 @@ getstrip(struct pagenode *pn, int strip)
struct stat sbuf;
unsigned char *Data;
union { t16bits s; unsigned char b[2]; } so;
- QString str;
+ TQString str;
#define ShortOrder so.b[1]
@@ -419,7 +419,7 @@ getstrip(struct pagenode *pn, int strip)
pn->length = pn->strips[strip].size;
}
else {
- str = i18n("Trying to expand too many strips\n%1%n").arg(QFile::decodeName(pn->pathname));
+ str = i18n("Trying to expand too many strips\n%1%n").arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Warning"),str);
return NULL;
}
@@ -448,7 +448,7 @@ getstrip(struct pagenode *pn, int strip)
/* handle ghostscript / PC Research fax file */
if (Data[24] != 1 || Data[25] != 0){
str = i18n("Only the first page of the PC Research multipage file\n%1\nwill be shown\n")
- .arg(QFile::decodeName(pn->pathname));
+ .arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Message"),str);
}
pn->length -= 64;
@@ -462,7 +462,7 @@ getstrip(struct pagenode *pn, int strip)
pn->height = G3count(pn, pn->expander == g32expand);
if (pn->height == 0) {
- str = i18n("No fax found in file:\n%1\n").arg(QFile::decodeName(pn->pathname));
+ str = i18n("No fax found in file:\n%1\n").arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Sorry"),str);
errno = 0;
badfile(pn);