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

List:       kde-commits
Subject:    kdevelop/parts/cppsupport
From:       Yann Hodique <Yann.Hodique () lifl ! fr>
Date:       2003-03-19 15:45:09
[Download RAW message or body]

CVS commit by hodique: 

improved file structure navigation


  M +3 -1      cppsupportpart.cpp   1.137


--- kdevelop/parts/cppsupport/cppsupportpart.cpp  #1.136:1.137
@@ -135,4 +135,5 @@ CppSupportPart::CppSupportPart(QObject *
     mainWindow()->embedSelectViewRight( m_structureView, i18n("File Structure"), \
                i18n("Show the structure for the current source unit") );
     connect( m_structureView, SIGNAL(executed(QListViewItem*)), this, \
SLOT(slotNodeSelected(QListViewItem*)) ); +    connect( m_structureView, \
SIGNAL(returnPressed(QListViewItem*)), this, SLOT(slotNodeSelected(QListViewItem*)) \
);  #endif
 
@@ -853,9 +854,10 @@ void CppSupportPart::slotNeedTextHint( i
 void CppSupportPart::slotNodeSelected( QListViewItem* item )
 {
-    if( !item || !m_activeSelection )
+    if( !item || !m_activeSelection || !m_activeViewCursor)
         return;
 
     m_activeSelection->setSelection( item->text(1).toInt(), item->text(2).toInt(),
                                      item->text(3).toInt(), item->text(4).toInt() );
+    m_activeViewCursor->setCursorPosition(item->text(1).toInt(), \
item->text(2).toInt());  }
 


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

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