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();
TQDateTime qlastsync;
qlastsync.setTime_t(lastsync);
fValues[CSL1("lastsync")] = qlastsync.toString(Qt::LocalDate);
fValues[CSL1("lastsync")] = qlastsync.toString(TQt::LocalDate);
lastsync = user.getLastSuccessfulSyncDate();
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());
keepParts.append(CSL1("sync"));
} else removeParts.append(CSL1("sync"));
@ -470,7 +470,7 @@ void SysInfoConduit::writeFile()
{
FUNCTIONSETUP;
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(Qt::LocalDate);
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(TQt::LocalDate);
TQString output;
// Open the template file
@ -563,11 +563,11 @@ void SysInfoConduit::writeFile()
newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
TQDateTime tm;
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);
newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate));
newpatt.replace(CSL1("%8"), tm.toString(TQt::LocalDate));
tm.setTime_t(dbi.backupDate);
newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate));
newpatt.replace(CSL1("%9"), tm.toString(TQt::LocalDate));
dbstring.append(newpatt);
}

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

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

@ -98,7 +98,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fInfoText->setAlignment( TQLabel::WordBreak );
fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" );
fStatusGroup->setColumnLayout(0, Qt::Vertical );
fStatusGroup->setColumnLayout(0, TQt::Vertical );
fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() );
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->setEnabled( FALSE );
fResultsGroup->setColumnLayout(0, Qt::Vertical );
fResultsGroup->setColumnLayout(0, TQt::Vertical );
fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() );
fResultsGroupLayout->setAlignment( TQt::AlignTop );

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

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

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

Loading…
Cancel
Save