diff options
Diffstat (limited to 'kword/KWImportStyleDia.cpp')
-rw-r--r-- | kword/KWImportStyleDia.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kword/KWImportStyleDia.cpp b/kword/KWImportStyleDia.cpp index b8341d20..c7660993 100644 --- a/kword/KWImportStyleDia.cpp +++ b/kword/KWImportStyleDia.cpp @@ -134,7 +134,7 @@ void KWImportStyleDia::loadFile() unsigned int i=0; for( TQValueList<TQString>::Iterator it = followingStyles.begin(); it != followingStyles.end(); ++it ) { TQString newName =*it; - if ( insertStyle.tqcontains( *it ) ) + if ( insertStyle.contains( *it ) ) newName = (insertStyle)[ *it ]; KoParagStyle * style = m_styleList.findStyle(newName); @@ -197,7 +197,7 @@ TQString KWImportFrameTableStyleDia::generateStyleName( const TQString & templat bool exists; do { name = templateName.tqarg( num ); - exists = (m_list.tqfindIndex( name )!=-1); + exists = (m_list.findIndex( name )!=-1); ++num; } while ( exists ); return name; @@ -240,7 +240,7 @@ void KWImportFrameTableStyleDia::loadFile() KWFrameStyle *sty = new KWFrameStyle( styleElem ); TQString name =sty->name(); - if ( m_list.tqfindIndex( name )!=-1 ) + if ( m_list.findIndex( name )!=-1 ) sty->setDisplayName(generateStyleName( sty->displayName() + TQString( "-%1"))); m_frameStyleList.append( sty); } @@ -252,7 +252,7 @@ void KWImportFrameTableStyleDia::loadFile() TQDomElement styleElem = listStyles.item( item ).toElement(); KWTableStyle *sty = new KWTableStyle( styleElem,m_doc,2 ); TQString name =sty->name(); - if ( m_list.tqfindIndex( name )!=-1 ) + if ( m_list.findIndex( name )!=-1 ) sty->setName(generateStyleName( sty->displayName() + TQString( "-%1"))); m_tableStyleList.append( sty); } |