Threee states panels bug with KDE 4

Submitted by pasnox on 2009-08-24

When using the three states panel view in kde 4, if we click on an issue in the left panel, the right panel is populated correctly, BUT a new window is created and show upon webissues : a issue window that make this app a nightmare :)
Please fix it quickly, regards.

Here's a quick patch that should fix this:

Index: src/views/folderview.cpp
===================================================================
--- src/views/folderview.cpp	(revision 634)
+++ src/views/folderview.cpp	(working copy)
@@ -197,7 +197,7 @@
 
     connect( m_list, SIGNAL( customContextMenuRequested( const QPoint& ) ),
         this, SLOT( listContextMenu( const QPoint& ) ) );
-    connect( m_list, SIGNAL( activated( const QModelIndex& ) ),
+    connect( m_list, SIGNAL( doubleClicked( const QModelIndex& ) ),
         this, SLOT( activated( const QModelIndex& ) ) );
 
     mainLayout->addWidget( m_list );
Index: src/views/projectsview.cpp
===================================================================
--- src/views/projectsview.cpp	(revision 634)
+++ src/views/projectsview.cpp	(working copy)
@@ -102,7 +102,7 @@
 
     connect( m_list, SIGNAL( customContextMenuRequested( const QPoint& ) ),
         this, SLOT( contextMenu( const QPoint& ) ) );
-    connect( m_list, SIGNAL( activated( const QModelIndex& ) ),
+    connect( m_list, SIGNAL( doubleClicked( const QModelIndex& ) ),
         this, SLOT( activated( const QModelIndex& ) ) );
 
     setMainWidget( m_list );

Note that it's not 100% correct because activated() is also emitted on pressing enter/return so I'll have to handle that separately. I'll fix that in trunk and release a 0.9.5-1 version later today or tomorrow.

One more thing: when I tried to emulate this behavior by modifying my Windows style to return the SH_ItemView_ActivateItemOnSingleClick hint, I noticed another problem: right-clicking on an item (folder, issue, etc.) opens both the new window and the contextual menu. Is that the case in KDE 4 too?

Regards,
Michał

That fixed the kde 4 single click problem, thanks !
There is no problem with the context menu requested in the project view on issue/folder on kde4.

Regards, and thanks again for your reactivity.
--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org

I commited a better fix to the trunk; now the Enter key is handled properly and also single click opens a new window when the application uses single-pane mode or when the view is opened in a separate window. Please check if it works for you.

Regards,
Michał

Working perfectly in single and three states panel mode using single click mouse mode !
Good job.

Regards,

--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org