summaryrefslogtreecommitdiffstats
path: root/knewstuff/downloaddialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /knewstuff/downloaddialog.cpp
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz
tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewstuff/downloaddialog.cpp')
-rw-r--r--knewstuff/downloaddialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/knewstuff/downloaddialog.cpp b/knewstuff/downloaddialog.cpp
index 4e1d298c8..521d13f24 100644
--- a/knewstuff/downloaddialog.cpp
+++ b/knewstuff/downloaddialog.cpp
@@ -225,7 +225,7 @@ void DownloadDialog::addProvider(Provider *p)
if(m_map.count() == 0)
{
- frame = addPage(i18n("Welcome"), i18n("Welcome"), TQPixmap(""));
+ frame = addPage(i18n("Welcome"), i18n("Welcome"), TQPixmap(TQString("")));
delete frame;
}
@@ -399,7 +399,7 @@ int DownloadDialog::installStatus(Entry *entry)
if(datestring.isNull()) installed = 0;
else
{
- date = TQDate::fromString(datestring, Qt::ISODate);
+ date = TQT_TQDATE_OBJECT(TQDate::fromString(datestring, Qt::ISODate));
if(!date.isValid()) installed = 0;
else if(date < entry->releaseDate()) installed = -1;
else installed = 1;
@@ -421,19 +421,19 @@ void DownloadDialog::addEntry(Entry *entry, const TQStringList& variants)
TQString lang = KGlobal::locale()->language();
- if(variants.contains("score"))
+ if(variants.tqcontains("score"))
{
KListViewItem *tmp_r = new NumSortListViewItem(lv_r,
entry->name(lang), entry->version(), TQString("%1").arg(entry->rating()));
tmp_r->setPixmap(0, pix);
}
- if(variants.contains("downloads"))
+ if(variants.tqcontains("downloads"))
{
KListViewItem *tmp_d = new NumSortListViewItem(lv_d,
entry->name(lang), entry->version(), TQString("%1").arg(entry->downloads()));
tmp_d->setPixmap(0, pix);
}
- if(variants.contains("latest"))
+ if(variants.tqcontains("latest"))
{
KListViewItem *tmp_l = new DateSortListViewItem(lv_l,
entry->name(lang), entry->version(), KGlobal::locale()->formatDate(entry->releaseDate()));
@@ -547,7 +547,7 @@ void DownloadDialog::slotInstall()
void DownloadDialog::install(Entry *e)
{
kapp->config()->setGroup("KNewStuffStatus");
- kapp->config()->writeEntry(m_entryname, e->releaseDate().toString(Qt::ISODate));
+ kapp->config()->writeEntry(m_entryname, TQString(e->releaseDate().toString(Qt::ISODate)));
kapp->config()->sync();
TQPixmap pix = KGlobal::iconLoader()->loadIcon("ok", KIcon::Small);
@@ -559,11 +559,11 @@ void DownloadDialog::install(Entry *e)
m_entryitem->setPixmap(0, pix);
TQListViewItem *item;
- item = lv_r->findItem(e->name(lang), 0);
+ item = lv_r->tqfindItem(e->name(lang), 0);
if(item) item->setPixmap(0, pix);
- item = lv_d->findItem(e->name(lang), 0);
+ item = lv_d->tqfindItem(e->name(lang), 0);
if(item) item->setPixmap(0, pix);
- item = lv_l->findItem(e->name(lang), 0);
+ item = lv_l->tqfindItem(e->name(lang), 0);
if(item) item->setPixmap(0, pix);
}
@@ -585,7 +585,7 @@ void DownloadDialog::slotInstalled(KIO::Job *job)
bool ret = job && (job->error() == 0);
if(ret)
{
- KIO::FileCopyJob *cjob = ::qt_cast<KIO::FileCopyJob*>(job);
+ KIO::FileCopyJob *cjob = ::tqqt_cast<KIO::FileCopyJob*>(job);
if(cjob)
{
ret = m_s->install(cjob->destURL().path());
@@ -651,19 +651,19 @@ void DownloadDialog::slotSelected()
if(m_curtab != 0)
{
lv_r->clearSelection();
- item = lv_r->findItem(e->name(lang), 0);
+ item = lv_r->tqfindItem(e->name(lang), 0);
if(item) lv_r->setSelected(item, true);
}
if(m_curtab != 1)
{
lv_d->clearSelection();
- item = lv_d->findItem(e->name(lang), 0);
+ item = lv_d->tqfindItem(e->name(lang), 0);
if(item) lv_d->setSelected(item, true);
}
if(m_curtab != 2)
{
lv_l->clearSelection();
- item = lv_l->findItem(e->name(lang), 0);
+ item = lv_l->tqfindItem(e->name(lang), 0);
if(item) lv_l->setSelected(item, true);
}
@@ -743,7 +743,7 @@ void DownloadDialog::slotPage(TQWidget *w)
kdDebug() << "changed widget!!!" << endl;
- if(m_map.find(w) == m_map.end()) return;
+ if(m_map.tqfind(w) == m_map.end()) return;
d->m_page = w;
@@ -794,7 +794,7 @@ void DownloadDialog::loadProvider(Provider *p)
for(TQStringList::Iterator it = variants.begin(); it != variants.end(); it++)
{
TQString url = p->downloadUrlVariant((*it)).url();
- if(!urls.contains(url))
+ if(!urls.tqcontains(url))
{
urls[url] = TQStringList();
}