Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 1 year ago
parent 8ea0f2c182
commit 26c96fa9fb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -379,10 +379,10 @@ void SysInfoConduit::syncInfo()
time_t lastsync = user.getLastSyncDate(); time_t lastsync = user.getLastSyncDate();
TQDateTime qlastsync; TQDateTime qlastsync;
qlastsync.setTime_t(lastsync); qlastsync.setTime_t(lastsync);
fValues[CSL1("lastsync")] = qlastsync.toString(Qt::LocalDate); fValues[CSL1("lastsync")] = qlastsync.toString(TQt::LocalDate);
lastsync = user.getLastSuccessfulSyncDate(); lastsync = user.getLastSuccessfulSyncDate();
qlastsync.setTime_t(lastsync); qlastsync.setTime_t(lastsync);
fValues[CSL1("lastsuccsync")] = qlastsync.toString(Qt::LocalDate); fValues[CSL1("lastsuccsync")] = qlastsync.toString(TQt::LocalDate);
fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC()); fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC());
keepParts.append(CSL1("sync")); keepParts.append(CSL1("sync"));
} else removeParts.append(CSL1("sync")); } else removeParts.append(CSL1("sync"));
@ -470,7 +470,7 @@ void SysInfoConduit::writeFile()
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(Qt::LocalDate); fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(TQt::LocalDate);
TQString output; TQString output;
// Open the template file // Open the template file
@ -563,11 +563,11 @@ void SysInfoConduit::writeFile()
newpatt.replace(CSL1("%6"), TQString::number(dbi.version)); newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
TQDateTime tm; TQDateTime tm;
tm.setTime_t(dbi.createDate); tm.setTime_t(dbi.createDate);
newpatt.replace(CSL1("%7"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%7"), tm.toString(TQt::LocalDate));
tm.setTime_t(dbi.modifyDate); tm.setTime_t(dbi.modifyDate);
newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%8"), tm.toString(TQt::LocalDate));
tm.setTime_t(dbi.backupDate); tm.setTime_t(dbi.backupDate);
newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%9"), tm.toString(TQt::LocalDate));
dbstring.append(newpatt); dbstring.append(newpatt);
} }

@ -140,7 +140,7 @@ void DBRecordEditor::initWidgets()
fFlagsGroup = new TQButtonGroup( fWidget, "fFlagsGroup" ); fFlagsGroup = new TQButtonGroup( fWidget, "fFlagsGroup" );
fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
(TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) ); (TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) );
fFlagsGroup->setColumnLayout(0, Qt::Vertical ); fFlagsGroup->setColumnLayout(0, TQt::Vertical );
fFlagsGroup->layout()->setSpacing( 6 ); fFlagsGroup->layout()->setSpacing( 6 );
fFlagsGroup->layout()->setMargin( 11 ); fFlagsGroup->layout()->setMargin( 11 );
fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() ); fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() );

@ -272,7 +272,7 @@ void FileInstallWidget::contextMenu(TQMouseEvent *event)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
return; return;
TQIconViewItem *item; TQIconViewItem *item;

@ -98,7 +98,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fInfoText->setAlignment( TQLabel::WordBreak ); fInfoText->setAlignment( TQLabel::WordBreak );
fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" ); fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" );
fStatusGroup->setColumnLayout(0, Qt::Vertical ); fStatusGroup->setColumnLayout(0, TQt::Vertical );
fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() ); fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() );
fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" ); fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" );
@ -112,7 +112,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" ); fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" );
fResultsGroup->setEnabled( FALSE ); fResultsGroup->setEnabled( FALSE );
fResultsGroup->setColumnLayout(0, Qt::Vertical ); fResultsGroup->setColumnLayout(0, TQt::Vertical );
fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() ); fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() );
fResultsGroupLayout->setAlignment( TQt::AlignTop ); fResultsGroupLayout->setAlignment( TQt::AlignTop );

@ -119,14 +119,14 @@ PilotDaemonTray::PilotDaemonTray(PilotDaemon * p) :
switch (e->button()) switch (e->button())
{ {
case Qt::RightButton: case TQt::RightButton:
{ {
TDEPopupMenu *menu = contextMenu(); TDEPopupMenu *menu = contextMenu();
contextMenuAboutToShow(menu); contextMenuAboutToShow(menu);
menu->popup(e->globalPos()); menu->popup(e->globalPos());
} }
break; break;
case Qt::LeftButton: case TQt::LeftButton:
if (daemon) daemon->slotRunKPilot(); if (daemon) daemon->slotRunKPilot();
break; break;
default: default:

@ -174,7 +174,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
text += ps; text += ps;
TQDateTime dt(readTm(getEventStart())); TQDateTime dt(readTm(getEventStart()));
TQString startDate(dt.toString(Qt::LocalDate)); TQString startDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("Start date: %1").arg(startDate); text+=i18n("Start date: %1").arg(startDate);
text+=ps; text+=ps;
@ -188,7 +188,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else else
{ {
dt=readTm(getEventEnd()); dt=readTm(getEventEnd());
TQString endDate(dt.toString(Qt::LocalDate)); TQString endDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("End date: %1").arg(endDate); text+=i18n("End date: %1").arg(endDate);
text+=ps; text+=ps;
@ -237,7 +237,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else else
{ {
dt = readTm(getRepeatEnd()).date(); dt = readTm(getRepeatEnd()).date();
text+=i18n("Until %1").arg(dt.toString(Qt::LocalDate)); text+=i18n("Until %1").arg(dt.toString(TQt::LocalDate));
} }
text+=br; text+=br;
@ -264,7 +264,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
for (int i = 0; i < getExceptionCount(); i++) for (int i = 0; i < getExceptionCount(); i++)
{ {
TQDate exdt=readTm(getExceptions()[i]).date(); TQDate exdt=readTm(getExceptions()[i]).date();
text+=exdt.toString(Qt::LocalDate); text+=exdt.toString(TQt::LocalDate);
text+=br; text+=br;
} }
text+=ps; text+=ps;

@ -138,7 +138,7 @@ TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText)
if (!getIndefinite()) if (!getIndefinite())
{ {
TQDate dt(readTm(getDueDate()).date()); TQDate dt(readTm(getDueDate()).date());
TQString dueDate(dt.toString(Qt::LocalDate)); TQString dueDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("Due date: %1").arg(dueDate); text+=i18n("Due date: %1").arg(dueDate);
text+=ps; text+=ps;

Loading…
Cancel
Save