Bug 78113

Summary: listview columns in the watch window shoud not autoresize
Product: [Applications] kdevelop Reporter: Martin Marinov <marinov>
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 3.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: State before auto-resize
State after auto-resize

Description Martin Marinov 2004-03-21 00:11:22 UTC
Version:           3.0 (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources

The listview columns in the watch window resize automaticly to fit the largest text entry in them. This is very annoying, especially when dealing with variables which are instances of template classes. When for example you click at the "expand(+)"  button in the "Variable" column and the class name is very long, you have to scroll 2 minutes to reach the "Value" column and actually to see the value.
Comment 1 Jens Dagerbo 2004-04-20 01:47:52 UTC
CVS commit by dagerbo: 

Don't autoresize watch window columns. 

CCMAIL: 78113-done@bugs.kde.org


  M +3 -3      variablewidget.cpp   1.37


--- kdevelop/languages/cpp/debugger/variablewidget.cpp  #1.36:1.37
@@ -150,7 +150,7 @@ VariableTree::VariableTree(VariableWidge
     QListView::setSelectionMode(QListView::Single);
 
-    addColumn(i18n("Variable"));
-    addColumn(i18n("Value"));
-    addColumn(i18n("Type"));
+    addColumn(i18n("Variable"), 100 );
+    addColumn(i18n("Value"), 100 );
+    addColumn(i18n("Type"), 100 );
 
     connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),


Comment 2 Martin Marinov 2004-10-13 13:27:19 UTC
It seems that is partially fixed - I attach two screenshots which show that problem still occurs. I think this now happens only if a subitem of some of the entries in the list view is expanded. It also only happens once for a particular list view entry.
Comment 3 Martin Marinov 2004-10-13 13:32:57 UTC
Created attachment 7858 [details]
State before auto-resize

This shows the state of the list view before clicking on the expand icon of the
"worst_it_" item.
Comment 4 Martin Marinov 2004-10-13 13:33:58 UTC
Created attachment 7859 [details]
State after auto-resize

This shows the state of the list view *after* clicking on the expand icon of
the "worst_it_" item.
Comment 5 Amilcar do Carmo Lucas 2004-10-13 14:19:07 UTC
Which KDevelop version?
Comment 6 Martin Marinov 2004-10-13 14:35:46 UTC
Version 3.0.4

Amilcar do Carmo Lucas wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>         
> http://bugs.kde.org/show_bug.cgi?id=78113        
> amilcar ida ing tu-bs de changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          AssignedTo|kdevelop-devel kdevelop org |kdevelop-bugs kdevelop org
> 
> 
> 
> ------- Additional Comments From amilcar ida ing tu-bs de  2004-10-13 14:19 -------
> Which KDevelop version?
> 
> 


Comment 7 Amilcar do Carmo Lucas 2004-10-13 14:45:20 UTC
How about updating to 3.1.1 ?
Comment 8 Martin Marinov 2004-10-14 23:04:07 UTC
It is apparently fixed in 3.1.1. Thanks a lot!:-)