diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /karbon/core/vdocument.cc | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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(); } |