summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kftpgrabber/src/widgets/kftpzeroconflistview.cpp')
-rw-r--r--kftpgrabber/src/widgets/kftpzeroconflistview.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/kftpgrabber/src/widgets/kftpzeroconflistview.cpp b/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
index b64da05..383cdb8 100644
--- a/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
+++ b/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
@@ -39,9 +39,7 @@
#include <tdeversion.h>
-#if KDE_IS_VERSION(3,4,0)
#include "kftpzeroconf.h"
-#endif
#include <tdelocale.h>
#include <kiconloader.h>
@@ -57,17 +55,14 @@ KFTPZeroConfListView::KFTPZeroConfListView(TQWidget *parent, const char *name)
setEmptyListText(i18n("No sites published."));
setItemsRenameable(false);
-#if KDE_IS_VERSION(3,4,0)
connect(KFTPAPI::getInstance()->zeroConfInterface(), SIGNAL(servicesUpdated()), this, SLOT(slotSitesChanged()));
connect(this, SIGNAL(executed(TQListViewItem*)), this, SLOT(slotSiteExecuted(TQListViewItem*)));
slotSitesChanged();
-#endif
}
void KFTPZeroConfListView::slotSitesChanged()
{
-#if KDE_IS_VERSION(3,4,0)
// Update the site list
TQValueList<DNSSD::RemoteService::Ptr> list = KFTPAPI::getInstance()->zeroConfInterface()->getServiceList();
@@ -84,15 +79,12 @@ void KFTPZeroConfListView::slotSitesChanged()
site->setPixmap(0, SmallIcon("lan"));
}
}
-#endif
}
void KFTPZeroConfListView::slotSiteExecuted(TQListViewItem *item)
{
-#if KDE_IS_VERSION(3,4,0)
// Connect to the site
KFTPAPI::getInstance()->mainWindow()->slotQuickConnect(item->text(0), item->text(1), item->text(2).toInt());
-#endif
}
#include "kftpzeroconflistview.moc"