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

List:       kdevelop-devel
Subject:    Variables window width
From:       Vladimir Prus <ghost () cs ! msu ! su>
Date:       2005-06-08 10:30:56
Message-ID: 200506081430.56877.ghost () cs ! msu ! su
[Download RAW message or body]

Hi,
I see the following code in variablewidget.cpp:

   void VariableWidget::setEnabled(bool bEnabled)
   {
       QWidget::setEnabled(bEnabled);
       if (bEnabled && parentWidget()) {
           varTree_->setColumnWidth(0, parentWidget()->width()/2);
       }
   }

I'm not sure what's 'parentWidget' -- probably kdeveloper's main window, but 
anyway, it's 640 pixels wide for me. However, when I click on "Variables" 
tab, the entire space allocated to variables widget is something like 190 
pixels (according to kruler). As 320 > 190, the 'Value' column is not even 
visible, which has caused me a great confusion when I first tried kdevelop.

Can somebody tell
1. What the code above tries to do?
2. How that initial width of window is determined?
3. And, finally, is the behaviour I see problem with the code, or 
misconfiguration of some kind?

When I switch to using automatic column width mode for the List View, at least 
I see the vars values. OTOH, the distance between names and values is too low 
(see attached). Maybe there's some better approach?

- Volodya

    

["vars.png" (image/png)]
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

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

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