diff options
| author | Dawit Alemayehu <[email protected]> | 2012-09-11 16:40:32 -0400 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2012-09-11 16:57:18 -0400 |
| commit | 7bccdf85f792ede6a66f7001f60278091b0df87b (patch) | |
| tree | 4669984b3c4bfaddb3da54d95183a0f7713447a2 /src/dolphinpart.cpp | |
| parent | 5fbc0101790adf5613e8c686a38bf9d831881a6d (diff) | |
Fix compile against the minimum required kdelibs version (v4.7.97)
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index a957fa665..a7e8bffec 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -120,6 +120,8 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL // Create file info and listing filter extensions. // NOTE: Listing filter needs to be instantiated after the creation of the view. new DolphinPartFileInfoExtension(this); + +#if KDE_IS_VERSION(4, 9, 2) new DolphinPartListingFilterExtension(this); KDirLister* lister = m_view->m_model->m_dirLister; @@ -130,6 +132,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL } else { kWarning() << "NULL KDirLister object! KParts::ListingNotificationExtension will NOT be supported"; } +#endif createActions(); m_actionHandler->updateViewActions(); @@ -661,6 +664,8 @@ KFileItemList DolphinPartFileInfoExtension::queryFor(KParts::FileInfoExtension:: return list; } +#if KDE_IS_VERSION(4, 9, 2) + DolphinPartListingFilterExtension::DolphinPartListingFilterExtension (DolphinPart* part) : KParts::ListingFilterExtension(part) , m_part(part) @@ -739,4 +744,6 @@ void DolphinPartListingNotificationExtension::slotItemsDeleted(const KFileItemLi emit listingEvent(KParts::ListingNotificationExtension::ItemsDeleted, items); } +#endif + #include "dolphinpart.moc" |
