diff --git a/TODO b/TODO index cda5f0b3b..71d9be23c 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,7 @@ Bugs and wishes to close when moving okular to kdegraphics: In progress [working on]: -> toc: highlight the row of the current page (BR127358) - (check if there's a better way to do the highlighting - in case just edit TOCItem::setSelected()) + (check if there's a better way to do the highlighting - in case just edit TOCItem::setCurrent()) -> thumbnailslist: show Viewport in(blended/contour) (actually it's only a red contour) -> annotations: renderers in PagePainter (for the 6 annots) diff --git a/ui/toc.cpp b/ui/toc.cpp index a08c6db6f..97bfc4c2c 100644 --- a/ui/toc.cpp +++ b/ui/toc.cpp @@ -53,7 +53,7 @@ class TOCItem : public QTreeWidgetItem return m_element; } - void setSelected( bool selected ) + void setCurrent( bool selected ) { setIcon( 0, selected ? KIcon( treeWidget()->layoutDirection() == Qt::RightToLeft ? "1leftarrow" : "1rightarrow" ) : QIcon() ); } @@ -139,7 +139,7 @@ void TOC::notifyViewportChanged( bool /*smoothMove*/ ) if ( m_current ) { - m_current->setSelected( false ); + m_current->setCurrent( false ); m_current = 0; } @@ -152,7 +152,7 @@ void TOC::notifyViewportChanged( bool /*smoothMove*/ ) { m_current = tmp; if (m_current) - m_current->setSelected( true ); + m_current->setCurrent( true ); } ++it; }