[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/khelpcenter
From:       Frerich Raabe <raabe () kde ! org>
Date:       2002-12-09 3:03:41
[Download RAW message or body]

CVS commit by raabe: 

- Selecting a link in the HTML view now tries to select the corresponding
  item in the contents tree.


  M +2 -0      mainwindow.cpp   1.22
  M +1 -1      navigator.cpp   1.47


--- kdebase/khelpcenter/mainwindow.cpp  #1.21:1.22
@@ -159,4 +159,6 @@ void MainWindow::slotOpenURLRequest( con
     kdDebug( 1400 ) << "MainWindow::slotOpenURLRequest(): " << url.url() << endl;
 
+    mNavigator->selectItem( url );
+
     bool own = false;
     

--- kdebase/khelpcenter/navigator.cpp  #1.46:1.47
@@ -469,5 +469,5 @@ void Navigator::selectItem( const KURL &
       NavigatorItem *item = static_cast<NavigatorItem *>( it.current() );
       if ( item->url() == url.url() ) {
-        item->setSelected( true );
+        mContentsTree->setCurrentItem( item );
         mContentsTree->ensureItemVisible( item );
         break;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic