diff options
Diffstat (limited to 'karbon/core/vdocument.cc')
-rw-r--r-- | karbon/core/vdocument.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/karbon/core/vdocument.cc b/karbon/core/vdocument.cc index 0384141b..2de51bf1 100644 --- a/karbon/core/vdocument.cc +++ b/karbon/core/vdocument.cc @@ -151,20 +151,20 @@ VDocument::removeLayer( VLayer* layer ) bool VDocument::canRaiseLayer( VLayer* layer ) { - int pos = m_layers.tqfind( layer ); + int pos = m_layers.find( layer ); return (pos != int( m_layers.count() ) - 1 && pos >= 0 ); } bool VDocument::canLowerLayer( VLayer* layer ) { - int pos = m_layers.tqfind( layer ); + int pos = m_layers.find( layer ); return (pos>0); } void VDocument::raiseLayer( VLayer* layer ) { - int pos = m_layers.tqfind( layer ); + int pos = m_layers.find( layer ); if( pos != int( m_layers.count() ) - 1 && pos >= 0 ) { VLayer* layer = m_layers.take( pos ); @@ -175,7 +175,7 @@ VDocument::raiseLayer( VLayer* layer ) void VDocument::lowerLayer( VLayer* layer ) { - int pos = m_layers.tqfind( layer ); + int pos = m_layers.find( layer ); if ( pos > 0 ) { VLayer* layer = m_layers.take( pos ); @@ -186,13 +186,13 @@ VDocument::lowerLayer( VLayer* layer ) int VDocument::layerPos( VLayer* layer ) { - return m_layers.tqfind( layer ); + return m_layers.find( layer ); } // VDocument::layerPos void VDocument::setActiveLayer( VLayer* layer ) { - if ( m_layers.tqfind( layer ) != -1 ) + if ( m_layers.find( layer ) != -1 ) m_activeLayer = layer; } // VDocument::setActiveLayer @@ -318,6 +318,6 @@ VDocument::accept( VVisitor& visitor ) TQString VDocument::objectName( const VObject *obj ) const { - TQMap<const VObject *, TQString>::ConstIterator it = m_objectNames.tqfind( obj ); + TQMap<const VObject *, TQString>::ConstIterator it = m_objectNames.find( obj ); return it == m_objectNames.end() ? 0L : it.data(); } |