diff options
Diffstat (limited to 'src/newstuff/dialog.cpp')
| -rw-r--r-- | src/newstuff/dialog.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp index 6e59499..43a5414 100644 --- a/src/newstuff/dialog.cpp +++ b/src/newstuff/dialog.cpp @@ -42,16 +42,6 @@ #include <tqtimer.h> #include <tqprogressbar.h> -#if KDE_IS_VERSION(3,4,90) -#define ENTRYNAME(e) e->name(m_lang) -#define ENTRYSUMM(e) e->summary(m_lang) -#define ENTRYEMAIL(e) e->authorEmail() -#else -#define ENTRYNAME(e) e->name() -#define ENTRYSUMM(e) e->summary() -#define ENTRYEMAIL(e) TQString() -#endif - #define OPENDESKTOP_REDIRECT_URL "opendesktop.org/content/download.php?content=" #define OPENDESKTOP_REDIRECT_TEXT "If the download does not start in 3 seconds:</span><span class=\"defaulttext\"> <a href=\"" @@ -322,7 +312,7 @@ void Dialog::slotResult(TDEIO::Job* job_) { if(stuff.tagName() == Latin1Literal("content")) { KNS::Entry* entry = new KNS::Entry(stuff); if(!entry->type().isEmpty() && entry->type() != m_typeName) { - myLog() << "NewStuff::Dialog::slotResult() - type mismatch, skipping " << ENTRYNAME(entry) << endl; + myLog() << "NewStuff::Dialog::slotResult() - type mismatch, skipping " << entry->name(m_lang) << endl; continue; } @@ -343,7 +333,7 @@ void Dialog::addEntry(KNS::Entry* entry_) { } Item* item = new Item(m_listView); - item->setText(0, ENTRYNAME(entry_)); + item->setText(0, entry_->name(m_lang)); item->setText(1, entry_->version()); item->setText(2, TQString::number(entry_->rating())); item->setText(3, TQString::number(entry_->downloads())); @@ -389,7 +379,7 @@ void Dialog::slotSelected(TQListViewItem* item_) { if(!license.isEmpty()) { license.prepend('(').append(')'); } - TQString name = TQString::fromLatin1("%1 %2").arg(ENTRYNAME(entry)).arg(license); + TQString name = TQString::fromLatin1("%1 %2").arg(entry->name(m_lang)).arg(license); TQFont font = m_nameLabel->font(); font.setBold(true); font.setItalic(false); |
