diff options
Diffstat (limited to 'src/ciwidgetmgr.cpp')
-rw-r--r-- | src/ciwidgetmgr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<TQButton*>(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()) |