summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/notepadconduit/notepad-conduit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/conduits/notepadconduit/notepad-conduit.cc')
-rw-r--r--kpilot/conduits/notepadconduit/notepad-conduit.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/kpilot/conduits/notepadconduit/notepad-conduit.cc b/kpilot/conduits/notepadconduit/notepad-conduit.cc
index 763f3acd..da6f085d 100644
--- a/kpilot/conduits/notepadconduit/notepad-conduit.cc
+++ b/kpilot/conduits/notepadconduit/notepad-conduit.cc
@@ -40,12 +40,12 @@
#include <pi-notepad.h>
-#include <qthread.h>
-#include <qapplication.h>
-#include <qvaluelist.h>
-#include <qimage.h>
-#include <qdir.h>
-#include <qcstring.h>
+#include <tqthread.h>
+#include <tqapplication.h>
+#include <tqvaluelist.h>
+#include <tqimage.h>
+#include <tqdir.h>
+#include <tqcstring.h>
extern "C"
{
@@ -53,7 +53,7 @@ unsigned long version_conduit_notepad = Pilot::PLUGIN_API;
}
NotepadConduit::NotepadConduit(KPilotLink *d, const char *n,
- const QStringList &args) : ConduitAction(d, n, args)
+ const TQStringList &args) : ConduitAction(d, n, args)
{
FUNCTIONSETUP;
fConduitName=i18n("Notepad");
@@ -74,7 +74,7 @@ NotepadConduit::~NotepadConduit()
DEBUGKPILOT << fname << ": In exec() @" << (unsigned long) this << endl;
#endif
- QDir dir(NotepadConduitSettings::outputDirectory());
+ TQDir dir(NotepadConduitSettings::outputDirectory());
if(!dir.exists() && !dir.mkdir(dir.path())) {
emit logError(i18n("Unable to open %1").arg(dir.path()));
delayDone();
@@ -91,11 +91,11 @@ NotepadConduit::~NotepadConduit()
return true;
}
-bool NotepadConduit::event(QEvent *e)
+bool NotepadConduit::event(TQEvent *e)
{
FUNCTIONSETUP;
- if(e->type() == QEvent::User) {
+ if(e->type() == TQEvent::User) {
#ifdef DEBUG
DEBUGKPILOT << fname << ": Notepad thread done." << endl;
#endif
@@ -115,7 +115,7 @@ bool NotepadConduit::event(QEvent *e)
// NotepadActionThread
//-----------------------------------------------------------------------------
-NotepadActionThread::NotepadActionThread(QObject *parent, KPilotLink *link) :
+NotepadActionThread::NotepadActionThread(TQObject *parent, KPilotLink *link) :
fParent(parent), fLink(link), notSaved(0), saved(0)
{
FUNCTIONSETUP;
@@ -131,8 +131,8 @@ void NotepadActionThread::run()
if ( n > 0 )
{
- QValueList<recordid_t> vl = db->idList();
- QValueList<recordid_t>::iterator it;
+ TQValueList<recordid_t> vl = db->idList();
+ TQValueList<recordid_t>::iterator it;
struct NotePad a;
for ( it = vl.begin(); it != vl.end(); ++it )
{
@@ -146,10 +146,10 @@ void NotepadActionThread::run()
}
}
KPILOT_DELETE(db);
- QApplication::postEvent(fParent, new QEvent(QEvent::User));
+ TQApplication::postEvent(fParent, new TQEvent(TQEvent::User));
}
-static void saveImageFromBITS(QImage &image, struct NotePad *n, unsigned int width)
+static void saveImageFromBITS(TQImage &image, struct NotePad *n, unsigned int width)
{
FUNCTIONSETUP;
image.setColor(0, qRgb(0xaa, 0xc1 ,0x91));
@@ -175,7 +175,7 @@ static void saveImageFromBITS(QImage &image, struct NotePad *n, unsigned int wid
}
}
-static void saveImageFromUNCOMPRESSED(QImage &image, struct NotePad *n, unsigned int width)
+static void saveImageFromUNCOMPRESSED(TQImage &image, struct NotePad *n, unsigned int width)
{
FUNCTIONSETUP;
@@ -219,7 +219,7 @@ void NotepadActionThread::saveImage(struct NotePad *n)
int height = n->body.height;
- QImage image(width, height, 8, 2);
+ TQImage image(width, height, 8, 2);
switch (n->body.dataType)
{
@@ -240,7 +240,7 @@ void NotepadActionThread::saveImage(struct NotePad *n)
// TODO: Post a warning to the UI
}
- QString filename(n->name);
+ TQString filename(n->name);
if(filename.isEmpty())
{
filename.sprintf("%4d-%02d-%02d_%02d-%02d-%02d",
@@ -251,7 +251,7 @@ void NotepadActionThread::saveImage(struct NotePad *n)
n->changeDate.min,
n->changeDate.sec);
}
- QString imgname = QString("%1/%2.png").arg(NotepadConduitSettings::outputDirectory()).arg(filename);
+ TQString imgname = TQString("%1/%2.png").arg(NotepadConduitSettings::outputDirectory()).arg(filename);
#ifdef DEBUG