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

List:       kde-commits
Subject:    KDE/kdevplatform/plugins/projectmanagerview
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-11-26 20:01:57
Message-ID: 1259265717.223621.12191.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1054789 by apaku:

Qt doesn't update the selection state when the model removes rows, so
lets do it ourselves.

 M  +2 -0      projectmanagerview.cpp  


--- trunk/KDE/kdevplatform/plugins/projectmanagerview/projectmanagerview.cpp \
#1054788:1054789 @@ -108,6 +108,8 @@
  
     connect( m_ui->projectTreeView->selectionModel(), SIGNAL(selectionChanged( const \
QItemSelection&, const QItemSelection&) ),  this, SLOT(selectionChanged() ) );
+    connect( m_modelFilter->sourceModel(), SIGNAL( rowsAboutToBeRemoved( const \
QModelIndex&, int, int ) ), +             this, SLOT(selectionChanged() ) );
     connect( KDevelop::ICore::self()->documentController(), \
SIGNAL(documentClosed(KDevelop::IDocument*) ),  SLOT(updateSyncAction()));
     connect( KDevelop::ICore::self()->documentController(), \
SIGNAL(documentOpened(KDevelop::IDocument*) ),


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

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