From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpilot/kpilot/internalEditorAction.cc | 72 +++++++++++++++++------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'kpilot/kpilot/internalEditorAction.cc') 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 -#include -#include -#include +#include +#include +#include #include #include #include @@ -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("")+localEntry+CSL1(""), QString::null, page); + KTextEdit*textBrowser = new KTextEdit(CSL1("")+localEntry+CSL1(""), 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("")+serialEntry+CSL1(""), QString::null, page); + textBrowser = new KTextEdit(CSL1("")+serialEntry+CSL1(""), 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)<