diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
commit | 9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch) | |
tree | b9e389db87bdba126010d03fb5bccdc748d0e6fa /lib/compatibility/knewstuff/downloaddialog.cpp | |
parent | 9930e16dde86b7de9b792613d826f4f8648b9768 (diff) | |
download | tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'lib/compatibility/knewstuff/downloaddialog.cpp')
-rw-r--r-- | lib/compatibility/knewstuff/downloaddialog.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/compatibility/knewstuff/downloaddialog.cpp b/lib/compatibility/knewstuff/downloaddialog.cpp index afc27b16..670d989e 100644 --- a/lib/compatibility/knewstuff/downloaddialog.cpp +++ b/lib/compatibility/knewstuff/downloaddialog.cpp @@ -46,11 +46,11 @@ using namespace KNS; -class NumSortListViewItem : public KListViewItem +class NumSortListViewItem : public TDEListViewItem { public: NumSortListViewItem( TQListView * parent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ) : - KListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) + TDEListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) { } @@ -62,7 +62,7 @@ class NumSortListViewItem : public KListViewItem s.sprintf("%08d", text(col).toInt()); return s; } - return KListViewItem::key( col, asc ); + return TDEListViewItem::key( col, asc ); } }; @@ -136,10 +136,10 @@ void DownloadDialog::load(TQString providerList) void DownloadDialog::clear() { - TQMap<TQWidget*, TQValueList<KListView*>* >::Iterator it; + TQMap<TQWidget*, TQValueList<TDEListView*>* >::Iterator it; for(it = m_map.begin(); it != m_map.end(); ++it) { - TQValueList<KListView*> *v = it.data(); + TQValueList<TDEListView*> *v = it.data(); kdDebug() << "clear listviews in " << v << endl; if(v) { @@ -179,7 +179,7 @@ void DownloadDialog::addProvider(Provider *p) KTabCtl *ctl; TQWidget *w_d, *w_r, *w_l; TQWidget *w2; - KListView *lvtmp_r, *lvtmp_d, *lvtmp_l; + TDEListView *lvtmp_r, *lvtmp_d, *lvtmp_l; TQTextBrowser *rt; TQString tmp; int ret; @@ -217,19 +217,19 @@ void DownloadDialog::addProvider(Provider *p) TQHBoxLayout *box = new TQHBoxLayout(frame); box->add(ctl); - lvtmp_r = new KListView(w_r); + lvtmp_r = new TDEListView(w_r); lvtmp_r->addColumn(i18n("Name")); lvtmp_r->addColumn(i18n("Version")); lvtmp_r->addColumn(i18n("Rating")); lvtmp_r->setSorting(2, false); - lvtmp_d = new KListView(w_d); + lvtmp_d = new TDEListView(w_d); lvtmp_d->addColumn(i18n("Name")); lvtmp_d->addColumn(i18n("Version")); lvtmp_d->addColumn(i18n("Downloads")); lvtmp_d->setSorting(2, false); - lvtmp_l = new KListView(w_l); + lvtmp_l = new TDEListView(w_l); lvtmp_l->addColumn(i18n("Name")); lvtmp_l->addColumn(i18n("Version")); lvtmp_l->addColumn(i18n("Release Date")); @@ -264,7 +264,7 @@ void DownloadDialog::addProvider(Provider *p) TQVBoxLayout *box4 = new TQVBoxLayout(w_l); box4->add(lvtmp_l); - TQValueList<KListView*> *v = new TQValueList<KListView*>; + TQValueList<TDEListView*> *v = new TQValueList<TDEListView*>; *v << lvtmp_r << lvtmp_d << lvtmp_l; m_map[frame] = v; m_rts[frame] = rt; @@ -363,11 +363,11 @@ void DownloadDialog::addEntry(Entry *entry) else if(installed < 0) pix = TDEGlobal::iconLoader()->loadIcon("history", KIcon::Small); else pix = TQPixmap(); - KListViewItem *tmp_r = new KListViewItem(lv_r, + TDEListViewItem *tmp_r = new TDEListViewItem(lv_r, entry->name(), entry->version(), TQString("%1").arg(entry->rating())); - KListViewItem *tmp_d = new NumSortListViewItem(lv_d, + TDEListViewItem *tmp_d = new NumSortListViewItem(lv_d, entry->name(), entry->version(), TQString("%1").arg(entry->downloads())); - KListViewItem *tmp_l = new KListViewItem(lv_l, + TDEListViewItem *tmp_l = new TDEListViewItem(lv_l, entry->name(), entry->version(), TDEGlobal::locale()->formatDate(entry->releaseDate())); tmp_r->setPixmap(0, pix); |