summaryrefslogtreecommitdiffstats
path: root/kpilot/kpilot/internalEditorAction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/kpilot/internalEditorAction.cc')
-rw-r--r--kpilot/kpilot/internalEditorAction.cc72
1 files changed, 36 insertions, 36 deletions
diff --git a/kpilot/kpilot/internalEditorAction.cc b/kpilot/kpilot/internalEditorAction.cc
index cee58ba2..bc4bdb3e 100644
--- a/kpilot/kpilot/internalEditorAction.cc
+++ b/kpilot/kpilot/internalEditorAction.cc
@@ -27,9 +27,9 @@
#include <options.h>
-#include <qtimer.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kmessagebox.h>
#include <kdialog.h>
#include <ktextedit.h>
@@ -61,7 +61,7 @@ bool InternalEditorAction::exec()
FUNCTIONSETUP;
emit logMessage(i18n("[Internal Editors]"));
fInternalEditorSyncStatus=eSyncStarted;
- QTimer::singleShot(0, this, SLOT(syncDirtyDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncDirtyDB()));
return true;
}
@@ -82,9 +82,9 @@ void InternalEditorAction::syncDirtyDB()
}
if (dbIter==dirtyDBs.end())
{
- KPilotSettings::setDirtyDatabases(QStringList());
+ KPilotSettings::setDirtyDatabases(TQStringList());
KPilotConfig::sync();
- QTimer::singleShot(0, this, SLOT(syncFlagsChangedDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncFlagsChangedDB()));
return;
}
#ifdef DEBUG
@@ -146,14 +146,14 @@ nextDB:
localDB->resetSyncFlags();
KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB);
- QTimer::singleShot(0, this, SLOT(syncDirtyDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncDirtyDB()));
}
-bool InternalEditorAction::queryUseKPilotChanges(QString dbName, recordid_t id, PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db)
+bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id, PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db)
{
FUNCTIONSETUP;
bool knownDB=true;
- QString localEntry, serialEntry, recType(i18n("record"));
+ TQString localEntry, serialEntry, recType(i18n("record"));
if (dbName==CSL1("AddressDB") && db)
{
@@ -201,7 +201,7 @@ bool InternalEditorAction::queryUseKPilotChanges(QString dbName, recordid_t id,
knownDB=false;
}
- QString dialogText(i18n("The %1 with ID %2 of the database \"%3\" was changed "
+ TQString dialogText(i18n("The %1 with ID %2 of the database \"%3\" was changed "
"on the handheld and in the internal editor. Shall the changes in KPilot be copied to the handheld, and so override the changes there?").
arg(recType).arg(id).arg(dbName));
@@ -212,40 +212,40 @@ bool InternalEditorAction::queryUseKPilotChanges(QString dbName, recordid_t id,
resdlg->setButtonText(KDialogBase::Ok, i18n("Use &KPilot"));
resdlg->setButtonText(KDialogBase::Cancel, i18n("Use &Handheld"));
- QWidget*page=new QWidget(resdlg);
+ TQWidget*page=new TQWidget(resdlg);
resdlg->setMainWidget(page);
- QGridLayout*layout = new QGridLayout( page, 1, 1);
+ TQGridLayout*layout = new TQGridLayout( page, 1, 1);
- QLabel *label=new QLabel(dialogText, page);
- label->setAlignment( QLabel::WordBreak );
+ TQLabel *label=new TQLabel(dialogText, page);
+ label->setAlignment( TQLabel::WordBreak );
layout->addMultiCellWidget( label, 0,0, 0,1 );
- layout->addItem( new QSpacerItem( 20, 10, QSizePolicy::Minimum,
- QSizePolicy::Fixed ), 1, 0 );
+ layout->addItem( new TQSpacerItem( 20, 10, TQSizePolicy::Minimum,
+ TQSizePolicy::Fixed ), 1, 0 );
if (knownDB)
{
- label=new QLabel(i18n("Entry in KPilot"), page);
+ label=new TQLabel(i18n("Entry in KPilot"), page);
layout->addWidget( label, 2,0);
- KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), QString::null, page);
+ KTextEdit*textBrowser = new KTextEdit(CSL1("<qt>")+localEntry+CSL1("</qt>"), TQString::null, page);
textBrowser->setReadOnly(true);
layout->addWidget( textBrowser, 3,0);
- label=new QLabel(i18n("Entry on Handheld"), page);
+ label=new TQLabel(i18n("Entry on Handheld"), page);
layout->addWidget( label, 2,1);
- textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), QString::null, page);
+ textBrowser = new KTextEdit(CSL1("<qt>")+serialEntry+CSL1("</qt>"), TQString::null, page);
textBrowser->setReadOnly(true);
layout->addWidget( textBrowser, 3,1);
}
else
{
- label=new QLabel(i18n("Entry in KPilot"), page);
+ label=new TQLabel(i18n("Entry in KPilot"), page);
layout->addMultiCellWidget( label, 2,2,0,1);
// directly display the record's data:
- QWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" );
+ TQWidget *hexEdit = KHE::createBytesEditWidget( page, "LocalBufferEdit" );
if( hexEdit )
{
KHE::BytesEditInterface* hexEditIf = KHE::bytesEditInterface( hexEdit );
@@ -260,16 +260,16 @@ bool InternalEditorAction::queryUseKPilotChanges(QString dbName, recordid_t id,
}
else
{
- QLabel*tmpW = new QLabel( i18n("To view and edit the record data, please install a hex editor (e.g. khexedit from kdeutils)."), page );
+ TQLabel*tmpW = new TQLabel( i18n("To view and edit the record data, please install a hex editor (e.g. khexedit from kdeutils)."), page );
tmpW->setBackgroundMode( Qt::PaletteMid );
tmpW->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter | Qt::WordBreak);
- tmpW->setFrameShape( QFrame::Panel );
- tmpW->setFrameShadow( QFrame::Sunken );
+ tmpW->setFrameShape( TQFrame::Panel );
+ tmpW->setFrameShadow( TQFrame::Sunken );
hexEdit = tmpW;
}
layout->addMultiCellWidget( hexEdit, 3,3,0,1);
- label=new QLabel(i18n("Entry on Handheld"), page);
+ label=new TQLabel(i18n("Entry on Handheld"), page);
layout->addMultiCellWidget( label, 4,4,0,1);
// directly display the record's data:
@@ -288,11 +288,11 @@ bool InternalEditorAction::queryUseKPilotChanges(QString dbName, recordid_t id,
}
else
{
- QLabel*tmpW = new QLabel( i18n("To view and edit the record data, please install a hex editor (e.g. khexedit from kdeutils)."), page );
+ TQLabel*tmpW = new TQLabel( i18n("To view and edit the record data, please install a hex editor (e.g. khexedit from kdeutils)."), page );
tmpW->setBackgroundMode( Qt::PaletteMid );
tmpW->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter | Qt::WordBreak);
- tmpW->setFrameShape( QFrame::Panel );
- tmpW->setFrameShadow( QFrame::Sunken );
+ tmpW->setFrameShape( TQFrame::Panel );
+ tmpW->setFrameShadow( TQFrame::Sunken );
hexEdit = tmpW;
}
layout->addMultiCellWidget( hexEdit, 5,5,0,1);
@@ -321,9 +321,9 @@ void InternalEditorAction::syncFlagsChangedDB()
}
if (dbIter==dirtyDBs.end())
{
- KPilotSettings::setFlagsChangedDatabases(QStringList());
+ KPilotSettings::setFlagsChangedDatabases(TQStringList());
KPilotConfig::sync();
- QTimer::singleShot(0, this, SLOT(syncAppBlockChangedDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB()));
return;
}
@@ -331,7 +331,7 @@ void InternalEditorAction::syncFlagsChangedDB()
DEBUGKPILOT<<"syncFlagsChangedDB for DB "<<(*dbIter)<<endl;
#endif
emit logError(i18n("Setting the database flags on the handheld is not yet supported."));
-QTimer::singleShot(0, this, SLOT(syncAppBlockChangedDB()));
+TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB()));
return;
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter, false);
@@ -343,7 +343,7 @@ return;
KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB);
- QTimer::singleShot(0, this, SLOT(syncAppBlockChangedDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB()));
}
void InternalEditorAction::syncAppBlockChangedDB()
@@ -362,9 +362,9 @@ void InternalEditorAction::syncAppBlockChangedDB()
}
if (dbIter==dirtyDBs.end())
{
- KPilotSettings::setAppBlockChangedDatabases(QStringList());
+ KPilotSettings::setAppBlockChangedDatabases(TQStringList());
KPilotConfig::sync();
- QTimer::singleShot(0, this, SLOT(cleanup()));
+ TQTimer::singleShot(0, this, TQT_SLOT(cleanup()));
return;
}
#ifdef DEBUG
@@ -381,7 +381,7 @@ void InternalEditorAction::syncAppBlockChangedDB()
KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB);
- QTimer::singleShot(0, this, SLOT(syncAppBlockChangedDB()));
+ TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB()));
}
void InternalEditorAction::cleanup()