From e05894553004a47b1e2f276bedcf5963b57a3932 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/ciwidgetmgr.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/ciwidgetmgr.cpp') diff --git a/src/ciwidgetmgr.cpp b/src/ciwidgetmgr.cpp index e12caac..b159de6 100644 --- a/src/ciwidgetmgr.cpp +++ b/src/ciwidgetmgr.cpp @@ -53,7 +53,7 @@ void CIWidgetMgr::setDrawWidgets( bool draw ) Widget *CIWidgetMgr::widgetWithID( const TQString &id ) const { - WidgetMap::const_iterator it = m_widgetMap.tqfind(id); + WidgetMap::const_iterator it = m_widgetMap.find(id); if ( it == m_widgetMap.end() ) return 0l; else return it.data(); @@ -100,7 +100,7 @@ void CIWidgetMgr::drawWidgets( TQPainter &p ) void CIWidgetMgr::removeWidget( const TQString & id ) { - if ( !m_widgetMap.tqcontains(id) ) + if ( !m_widgetMap.contains(id) ) return; delete m_widgetMap[id]; @@ -115,7 +115,7 @@ Button* CIWidgetMgr::addButton( const TQString &id, const TQRect & pos, const TQ Button *button = new Button( id, p_cnItem, toggle, pos, p_canvas ); (dynamic_cast(button->widget()))->setText(display); - it = m_widgetMap.tqfind(id); + it = m_widgetMap.find(id); if ( it == m_widgetMap.end() ) { m_widgetMap[id] = button; @@ -139,7 +139,7 @@ Button* CIWidgetMgr::addButton( const TQString &id, const TQRect & pos, TQPixmap Button *button = new Button( id, p_cnItem, toggle, pos, p_canvas ); button->setPixmap(pixmap); - it = m_widgetMap.tqfind(id); + it = m_widgetMap.find(id); if ( it == m_widgetMap.end() ) { m_widgetMap[id] = button; @@ -167,7 +167,7 @@ Slider* CIWidgetMgr::addSlider( const TQString &id, int minValue, int maxValue, qslider->setValue(value); slider->setOrientation(orientation); - WidgetMap::iterator it = m_widgetMap.tqfind(id); + WidgetMap::iterator it = m_widgetMap.find(id); if ( it == m_widgetMap.end() ) { m_widgetMap[id] = slider; @@ -191,7 +191,7 @@ bool CIWidgetMgr::mousePressEvent( const EventInfo &info ) const WidgetMap::iterator widgetMapEnd = m_widgetMap.end(); for ( WidgetMap::iterator it = m_widgetMap.begin(); it != widgetMapEnd; ++it ) { - if ( it.data()->rect().tqcontains(info.pos) ) + if ( it.data()->rect().contains(info.pos) ) { it.data()->mousePressEvent(e); if (e->isAccepted()) @@ -229,7 +229,7 @@ bool CIWidgetMgr::mouseDoubleClickEvent( const EventInfo &info ) const WidgetMap::iterator widgetMapEnd = m_widgetMap.end(); for ( WidgetMap::iterator it = m_widgetMap.begin(); it != widgetMapEnd; ++it ) { - if ( it.data()->rect().tqcontains(info.pos) ) + if ( it.data()->rect().contains(info.pos) ) { it.data()->mouseDoubleClickEvent(e); if (e->isAccepted()) @@ -270,7 +270,7 @@ bool CIWidgetMgr::wheelEvent( const EventInfo &info ) const WidgetMap::iterator widgetMapEnd = m_widgetMap.end(); for ( WidgetMap::iterator it = m_widgetMap.begin(); it != widgetMapEnd; ++it ) { - if ( it.data()->rect().tqcontains(info.pos) ) + if ( it.data()->rect().contains(info.pos) ) { it.data()->wheelEvent(e); if (e->isAccepted()) -- cgit v1.2.1