diff options
Diffstat (limited to 'kpresenter/KPrSideBar.cpp')
-rw-r--r-- | kpresenter/KPrSideBar.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kpresenter/KPrSideBar.cpp b/kpresenter/KPrSideBar.cpp index 51db3f4e..a1077a17 100644 --- a/kpresenter/KPrSideBar.cpp +++ b/kpresenter/KPrSideBar.cpp @@ -60,7 +60,7 @@ TQValidator::State KPrRenamePageValidator::validate( TQString & input, int& ) co if ( str.isEmpty() ) // we want to allow empty titles. Empty == automatic. return Acceptable; - if ( mStringList.tqfind( str ) == mStringList.end() ) + if ( mStringList.find( str ) == mStringList.end() ) return Acceptable; else return Intermediate; @@ -208,7 +208,7 @@ void KPrSideBar::updateItem( KPrPage *page ) } else { - pos = m_doc->pageList().tqfindRef( page ); + pos = m_doc->pageList().findRef( page ); } m_outline->updateItem( pos, sticky ); @@ -277,7 +277,7 @@ void KPrThumbBar::setCurrentPage( int pg ) TQRect KPrThumbBar::tip(const TQPoint &pos, TQString &title) { - TQIconViewItem *item = tqfindItem(viewportToContents(pos)); + TQIconViewItem *item = findItem(viewportToContents(pos)); if (!item) return TQRect(0, 0, -1, -1); @@ -363,7 +363,7 @@ void KPrThumbBar::refreshItems(bool offset) else vRect.moveBy( contentsX(), contentsY() ); - TQIconViewItem *it = tqfindFirstVisibleItem( vRect ); + TQIconViewItem *it = findFirstVisibleItem( vRect ); while ( it ) { kdDebug(33001) << "visible page = " << it->text().toInt() << endl; @@ -373,7 +373,7 @@ void KPrThumbBar::refreshItems(bool offset) static_cast<ThumbItem *>(it)->setUptodate( true ); } - if ( it == tqfindLastVisibleItem( vRect ) ) + if ( it == findLastVisibleItem( vRect ) ) break; it = it->nextItem(); } @@ -397,7 +397,7 @@ void KPrThumbBar::updateItem( int pagenr /* 0-based */, bool sticky ) TQIconViewItem *it = firstItem(); do { - if ( it == tqfindFirstVisibleItem( vRect ) ) { + if ( it == findFirstVisibleItem( vRect ) ) { do { if ( sticky || it->text().toInt() == pagenr + 1 ) { @@ -407,7 +407,7 @@ void KPrThumbBar::updateItem( int pagenr /* 0-based */, bool sticky ) if ( !sticky ) return; } - if ( it == tqfindLastVisibleItem( vRect ) ) + if ( it == findLastVisibleItem( vRect ) ) break; pagecnt++; it = it->nextItem(); @@ -911,7 +911,7 @@ void KPrOutline::itemClicked( TQListViewItem *item ) KPrPage* page = slideItem->page(); if( !page ) return; if ( !m_viewMasterPage ) - emit showPage( m_doc->pageList().tqfindRef( page ) ); + emit showPage( m_doc->pageList().findRef( page ) ); } // check if we need to show chosen object @@ -928,7 +928,7 @@ void KPrOutline::itemClicked( TQListViewItem *item ) KPrPage* page = slideItem->page(); if( !page ) return; if ( !m_viewMasterPage ) - emit showPage( m_doc->pageList().tqfindRef( page ) ); + emit showPage( m_doc->pageList().findRef( page ) ); } // select the object, make sure it's visible @@ -1010,7 +1010,7 @@ void KPrOutline::moveItem( TQListViewItem *i, TQListViewItem *, TQListViewItem * if ( !srcItem ) return; - int num = m_doc->pageList().tqfindRef( srcItem->page() ); + int num = m_doc->pageList().findRef( srcItem->page() ); int numNow = 0; if ( newAfter ) @@ -1019,7 +1019,7 @@ void KPrOutline::moveItem( TQListViewItem *i, TQListViewItem *, TQListViewItem * if( !dstItem ) return; - numNow = m_doc->pageList().tqfindRef( dstItem->page() ); + numNow = m_doc->pageList().findRef( dstItem->page() ); if ( numNow < num ) numNow++; } |