[Bug 78142] Menu item text in View|Tree Tool Views doesn't show

Jonathan Solomon jsolomon at comcast.net
Thu Mar 25 02:31:03 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=78142      




------- Additional Comments From jsolomon comcast net  2004-03-25 02:32 -------
I've made some progress in tracking this down. The first problem was the result of a temporary being passed to a routine expecting a reference. In my experience this always causes trouble. The value being passed in is fine but it's not getting into the routine being called. The following patch fixes that problem.

------------------------------------------------------------------

--- kdockwidget.cpp.backup      2004-03-24 12:33:24.000000000 -0500
+++ kdockwidget.cpp     2004-03-24 12:38:46.000000000 -0500
 @ -2659,8 +2659,13  @
       obj->setGeometry(r);

       c->setGroup( group );
-      obj->setTabPageLabel(c->readEntry( oname + ":tabCaption" ));
-      obj->setToolTipString(c->readEntry( oname + ":tabToolTip" ));
+
+         QString               entryname;
+
+         entryname = oname + ":tabCaption";
+      obj->setTabPageLabel(c->readEntry( entryname ));
+         entryname = oname + ":tabToolTip";
+      obj->setToolTipString(c->readEntry( entryname ));
       if ( c->readBoolEntry( oname + ":visible" ) ){
         obj->QWidget::show();
       }
 @ -2668,8 +2673,13  @

     if ( type == "DOCK"  ){
       obj = getDockWidgetFromName( oname );
-      obj->setTabPageLabel(c->readEntry( oname + ":tabCaption" ));
-      obj->setToolTipString(c->readEntry( oname + ":tabToolTip" ));
+
+         QString               entryname;
+
+         entryname = oname + ":tabCaption";
+      obj->setTabPageLabel(c->readEntry( entryname ));
+         entryname = oname + ":tabToolTip";
+      obj->setToolTipString(c->readEntry( entryname ));
     }

     if (obj && obj->d->isContainer) {

--------------------------------------------------------------------------------

A second problem is that because the dock tab names are getting whacked, empty values are written out to '~/.kde/share/config/kdeveloprc'. If you replace the missing values they're deleted the next time kdevelop is run.

--------------------------------------------------------------------------------

Now that I've got the dock widget names being properly set, there still appears to be a problem with them being lost before MainWindow::fillToolViewsMenu() can be called. Still working on this. Unfortunately my libc++ is still non-debug but kdevelop, kdelibs, and qt are debug. Getting some crashes on deletion as you would expect because of this.




More information about the KDevelop-devel mailing list