diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:35:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:35:25 +0900 |
commit | 7e9d8ea45280ad6657796da9536ccf6218111f22 (patch) | |
tree | 67d57c480b89c5967466e39bf60f7e4f05434f15 /konq-plugins/dirfilter | |
parent | 1ecb90ecaf66e1cc8ddeacad21e71640477d9767 (diff) | |
download | tdeaddons-7e9d8ea45280ad6657796da9536ccf6218111f22.tar.gz tdeaddons-7e9d8ea45280ad6657796da9536ccf6218111f22.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'konq-plugins/dirfilter')
-rw-r--r-- | konq-plugins/dirfilter/dirfilterplugin.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp b/konq-plugins/dirfilter/dirfilterplugin.cpp index 5b9a8e7..d70b6cf 100644 --- a/konq-plugins/dirfilter/dirfilterplugin.cpp +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp @@ -156,18 +156,18 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name, m_pFilterMenu->setDelayed (false); m_pFilterMenu->setWhatsThis(i18n("Allow to filter the currently displayed items by filetype.")); - connect (m_pFilterMenu->popupMenu(), TQT_SIGNAL (aboutToShow()), - TQT_SLOT (slotShowPopup())); - - connect (m_part, TQT_SIGNAL(itemRemoved(const KFileItem*)), - TQT_SLOT( slotItemRemoved (const KFileItem*))); - connect (m_part, TQT_SIGNAL(itemsAdded(const KFileItemList&)), - TQT_SLOT (slotItemsAdded(const KFileItemList&))); - connect (m_part, TQT_SIGNAL(itemsFilteredByMime(const KFileItemList&)), - TQT_SLOT (slotItemsAdded(const KFileItemList&))); - connect (m_part, TQT_SIGNAL(itemsRefresh(const KFileItemList&)), - TQT_SLOT (slotItemsRefresh(const KFileItemList&))); - connect (m_part, TQT_SIGNAL(aboutToOpenURL()), TQT_SLOT(slotOpenURL())); + connect (m_pFilterMenu->popupMenu(), TQ_SIGNAL (aboutToShow()), + TQ_SLOT (slotShowPopup())); + + connect (m_part, TQ_SIGNAL(itemRemoved(const KFileItem*)), + TQ_SLOT( slotItemRemoved (const KFileItem*))); + connect (m_part, TQ_SIGNAL(itemsAdded(const KFileItemList&)), + TQ_SLOT (slotItemsAdded(const KFileItemList&))); + connect (m_part, TQ_SIGNAL(itemsFilteredByMime(const KFileItemList&)), + TQ_SLOT (slotItemsAdded(const KFileItemList&))); + connect (m_part, TQ_SIGNAL(itemsRefresh(const KFileItemList&)), + TQ_SLOT (slotItemsRefresh(const KFileItemList&))); + connect (m_part, TQ_SIGNAL(aboutToOpenURL()), TQ_SLOT(slotOpenURL())); // add a searchline filter for konqis icons/list views TQHBox *hbox = new TQHBox(m_part->widget()); @@ -197,8 +197,8 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name, if ( m_searchWidget ) { TQWhatsThis::add(m_searchWidget, i18n("Enter here a text which an item in the view must contain anywhere to be shown.")); - connect(clear, TQT_SIGNAL(activated()), m_searchWidget, TQT_SLOT(clear())); - connect(m_searchWidget, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(searchTextChanged(const TQString&))); + connect(clear, TQ_SIGNAL(activated()), m_searchWidget, TQ_SLOT(clear())); + connect(m_searchWidget, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(searchTextChanged(const TQString&))); } KWidgetAction *filterAction = new KWidgetAction(hbox, i18n("Filter Field"), @@ -210,9 +210,9 @@ DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name, // Really the broken TQt3 iconview should just be modified to include a hidden list; it would make things *so* much easier! m_refreshTimer = new TQTimer( this ); m_reactivateRefreshTimer = new TQTimer( this ); - connect( m_refreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(activateSearch()) ); + connect( m_refreshTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(activateSearch()) ); m_refreshTimer->start( 200, FALSE ); // 200 millisecond continuous timer - connect( m_reactivateRefreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reactivateRefreshTimer()) ); + connect( m_reactivateRefreshTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(reactivateRefreshTimer()) ); } @@ -302,7 +302,7 @@ void DirFilterPlugin::slotShowPopup() m_pMimeInfo[it.key()].id = m_pFilterMenu->popupMenu()->insertItem ( SmallIconSet(it.data().iconName), label, - this, TQT_SLOT(slotItemSelected(int)), 0, ++id); + this, TQ_SLOT(slotItemSelected(int)), 0, ++id); if (it.data().useAsFilter) { @@ -333,7 +333,7 @@ void DirFilterPlugin::slotShowPopup() m_pMimeInfo[(*it)].id = m_pFilterMenu->popupMenu()->insertItem ( SmallIconSet(m_pMimeInfo[(*it)].iconName), label, - this, TQT_SLOT(slotItemSelected(int)), 0, ++id); + this, TQ_SLOT(slotItemSelected(int)), 0, ++id); if (m_pMimeInfo[(*it)].useAsFilter) { @@ -345,16 +345,16 @@ void DirFilterPlugin::slotShowPopup() m_pFilterMenu->popupMenu()->insertSeparator (); id = m_pFilterMenu->popupMenu()->insertItem (i18n("Use Multiple Filters"), - this, TQT_SLOT(slotMultipleFilters())); + this, TQ_SLOT(slotMultipleFilters())); m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset <= 1); m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->useMultipleFilters); id = m_pFilterMenu->popupMenu()->insertItem (i18n("Show Count"), this, - TQT_SLOT(slotShowCount())); + TQ_SLOT(slotShowCount())); m_pFilterMenu->popupMenu()->setItemChecked (id, SessionManager::self()->showCount); id = m_pFilterMenu->popupMenu()->insertItem (i18n("Reset"), this, - TQT_SLOT(slotReset())); + TQ_SLOT(slotReset())); m_pFilterMenu->popupMenu()->setItemEnabled (id, enableReset); } @@ -481,7 +481,7 @@ void DirFilterPlugin::slotItemRemoved(const KFileItem* item) m_part->setMimeFilter(filters); SessionManager::self()->save(m_part->url(), filters); // Use 1ms delay to avoid possible race conditions - TQTimer::singleShot(1, this, TQT_SLOT(slotTimeout())); + TQTimer::singleShot(1, this, TQ_SLOT(slotTimeout())); } m_pMimeInfo.remove(mimeType); } @@ -547,7 +547,7 @@ void DirFilterPlugin::slotItemsRefresh(const KFileItemList &list) m_part->setMimeFilter(filters); SessionManager::self()->save(m_part->url(), filters); // Use 1ms delay to avoid possible race conditions - TQTimer::singleShot(1, this, TQT_SLOT(slotTimeout())); + TQTimer::singleShot(1, this, TQ_SLOT(slotTimeout())); } MimeInfoIterator del_mit = it; ++it; |