Variables window width
jbb
jbb at kdevelop.org
Thu Jun 9 09:28:02 UTC 2005
Not sure about this. Could be something from kde1/qt1 or kde2/qt2.
Is there any gui expert here that can shed light on what to do?
jbb
On Wed, 08 Jun 2005 22:30, Vladimir Prus wrote:
> 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
More information about the KDevelop-devel
mailing list