summaryrefslogtreecommitdiffstats
path: root/kget/dlgIndividual.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kget/dlgIndividual.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/dlgIndividual.cpp')
-rw-r--r--kget/dlgIndividual.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kget/dlgIndividual.cpp b/kget/dlgIndividual.cpp
index 9cb9690c..b61f7c72 100644
--- a/kget/dlgIndividual.cpp
+++ b/kget/dlgIndividual.cpp
@@ -63,7 +63,7 @@ DlgIndividual::DlgIndividual(Transfer * _item)
// Actions
- m_paDock = new KToggleAction(i18n("&Dock"),"tool_dock.png", 0, this, TQT_SLOT(slotToggleDock()), this, "dockIndividual");
+ m_paDock = new KToggleAction(i18n("&Dock"),"tool_dock.png", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleDock()), TQT_TQOBJECT(this), "dockIndividual");
TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(),KDialog::spacingHint() );
@@ -162,9 +162,9 @@ DlgIndividual::DlgIndividual(Transfer * _item)
// otherwise set it to the current time
TQDateTime dt;
- if (item->getStartTime() < TQDateTime::currentDateTime() && item->getMode() != Transfer::MD_SCHEDULED)
+ if (item->getStartTime() < TQDateTime::tqcurrentDateTime() && item->getMode() != Transfer::MD_SCHEDULED)
{
- dt = TQDateTime::currentDateTime();
+ dt = TQDateTime::tqcurrentDateTime();
}
else
{
@@ -182,14 +182,14 @@ DlgIndividual::DlgIndividual(Transfer * _item)
ml_log = new TQTextEdit(panelAdvanced);
ml_log->setTextFormat(LogText);
ml_log->setReadOnly(true);
- // ml_log->setFixedSize(sizeHint());
+ // ml_log->setFixedSize(tqsizeHint());
ml_log->setVScrollBarMode(TQScrollView::Auto);
ml_log->setWordWrap(TQTextEdit::NoWrap);
- // ml_log->setSizePolicy(policy);
+ // ml_log->tqsetSizePolicy(policy);
panelAdvanced->addTab(ml_log, i18n("Log"));
- // panelAdvanced->setFixedSize(sizeHint());
+ // panelAdvanced->setFixedSize(tqsizeHint());
@@ -197,7 +197,7 @@ DlgIndividual::DlgIndividual(Transfer * _item)
advanced = ksettings.b_advancedIndividual;
slotToggleAdvanced();
- resize( minimumSizeHint() );
+ resize( tqminimumSizeHint() );
setMaximumHeight( height() );
//bool keepOpenChecked = false;
@@ -218,13 +218,13 @@ void DlgIndividual::setPercent(unsigned long percent)
{
m_pProgressBar->setValue(percent);
m_pDockIndividual->setValue(percent);
- setCaption(i18n("%1% of %2 - %3").arg(percent).arg(KIO::convertSize(m_iTotalSize)).arg(m_location.fileName()));
+ setCaption(i18n("%1% of %2 - %3").tqarg(percent).tqarg(KIO::convertSize(m_iTotalSize)).tqarg(m_location.fileName()));
}
void DlgIndividual::setProcessedSize(KIO::filesize_t bytes)
{
- sizeLabel->setText(i18n("%1 of %2").arg(KIO::convertSize(bytes)).arg(KIO::convertSize(m_iTotalSize)));
+ sizeLabel->setText(i18n("%1 of %2").tqarg(KIO::convertSize(bytes)).tqarg(KIO::convertSize(m_iTotalSize)));
}
@@ -315,7 +315,7 @@ void DlgIndividual::slotKeepOpenToggled(bool bToggled)
bKeepDlgOpen=bToggled;
- if (!bKeepDlgOpen && item->getStatus()==Transfer::ST_FINISHED)
+ if (!bKeepDlgOpen && item->gettqStatus()==Transfer::ST_FINISHED)
{
hide();
m_pDockIndividual->hide();