diff options
Diffstat (limited to 'knewstuff/downloaddialog.cpp')
-rw-r--r-- | knewstuff/downloaddialog.cpp | 30 |
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(); } |