diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:10:05 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:10:05 -0600 |
commit | 74a2067d286867e313f736d6733407586b71195e (patch) | |
tree | 182ea565d6909db1541424e4ffb3168b4b139c21 /konq-plugins/dirfilter/dirfilterplugin.cpp | |
parent | 081670a12774435ae60cf8eba9226b91d27852b3 (diff) | |
download | tdeaddons-74a2067d286867e313f736d6733407586b71195e.tar.gz tdeaddons-74a2067d286867e313f736d6733407586b71195e.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'konq-plugins/dirfilter/dirfilterplugin.cpp')
-rw-r--r-- | konq-plugins/dirfilter/dirfilterplugin.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp b/konq-plugins/dirfilter/dirfilterplugin.cpp index a0a0980..d92ce52 100644 --- a/konq-plugins/dirfilter/dirfilterplugin.cpp +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp @@ -153,7 +153,7 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name, if ( !m_part || !m_part->scrollWidget() ) return; - m_pFilterMenu = new KActionMenu (i18n("View F&ilter"), "filter", + m_pFilterMenu = new TDEActionMenu (i18n("View F&ilter"), "filter", actionCollection(), "filterdir"); m_pFilterMenu->setDelayed (false); m_pFilterMenu->setWhatsThis(i18n("Allow to filter the currently displayed items by filetype.")); @@ -173,16 +173,16 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name, TQHBox *hbox = new TQHBox(m_part->widget()); hbox->hide(); - KAction *clear = new KAction(i18n("Clear Filter Field"), + TDEAction *clear = new TDEAction(i18n("Clear Filter Field"), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, 0, 0, actionCollection(), "clear_filter"); clear->setWhatsThis(i18n("Clear filter field<p>Clears the content of the filter field.")); - if ( ::tqqt_cast<KListView*>(m_part->scrollWidget()) ) + if ( ::tqqt_cast<TDEListView*>(m_part->scrollWidget()) ) { - m_searchWidget = new KListViewSearchLine(hbox); - static_cast<KListViewSearchLine*>(m_searchWidget)->setListView(static_cast<KListView*>(m_part->scrollWidget())); + m_searchWidget = new TDEListViewSearchLine(hbox); + static_cast<TDEListViewSearchLine*>(m_searchWidget)->setListView(static_cast<TDEListView*>(m_part->scrollWidget())); } else if ( ::tqqt_cast<TQIconView*>(m_part->scrollWidget()) ) { @@ -416,9 +416,9 @@ void DirFilterPlugin::slotItemsAdded (const KFileItemList& list) m_pFilterMenu->setEnabled (m_part->nameFilter().isEmpty()); return; } - if ( ::tqqt_cast<KListView*>(m_part->scrollWidget()) ) + if ( ::tqqt_cast<TDEListView*>(m_part->scrollWidget()) ) { - static_cast<KListViewSearchLine*>(m_searchWidget)->updateSearch(); + static_cast<TDEListViewSearchLine*>(m_searchWidget)->updateSearch(); } else if ( ::tqqt_cast<TQIconView*>(m_part->scrollWidget()) ) { @@ -506,8 +506,8 @@ void DirFilterPlugin::activateSearch() m_oldFilterString = m_searchWidget->text(); - if ( ::tqqt_cast<KListView*>(m_part->scrollWidget()) ) { - static_cast<KListViewSearchLine*>(m_searchWidget)->updateSearch(); + if ( ::tqqt_cast<TDEListView*>(m_part->scrollWidget()) ) { + static_cast<TDEListViewSearchLine*>(m_searchWidget)->updateSearch(); } else if ( ::tqqt_cast<TQIconView*>(m_part->scrollWidget()) ) { static_cast<KIconViewSearchLine*>(m_searchWidget)->updateSearch(); |