[PyKDE] resize rows in eric3 variable windows

Detlev Offenbach detlev at die-offenbachs.de
Sun May 28 08:24:03 BST 2006


Hi,

that looks easy. I'll add it for version 3.9.1.

Thanks

Detlev

Am Donnerstag, 25. Mai 2006 15:03 schrieb Andreas Pakulat:
> On 25.05.06 12:24:09, Andreas Pakulat wrote:
> > On 25.05.06 07:43:21, Detlev Offenbach wrote:
> > > Am Mittwoch, 24. Mai 2006 21:08 schrieb Andreas Pakulat:
> > > > Hi,
> > > >
> > > > is there maybe a way to get resizable rows for the variable windows
> > > > in eric3? I tend to have multiline text pretty often atm and I can't
> > > > have a quick look because the only way to see it is by hovering over
> > > > the item and wait till the tooltip comes up.
> > > >
> > > > Maybe an option that resizes all rows to the content, or just a
> > > > handle to resize them individually.
> > > >
> > > > Andreas
> > >
> > > As far as I know, that is not supported by Qt. If I am wrong, please
> > > give advice.
> >
> > Well, I didn't try anything, but I can see a height() function for
> > QListViewItem. I'll have a look at  a C++ project I have lying around,
> > where exactly this is working.
> >
> > If you can give me a hint as to where I'd find the listview class for
> > the variable view I might be able to provide a patch.
>
> Found the place myself, and while implementing the way it is done in the
> other project (qbankmanager) turned out to be not as straightforward as
> I thought the solution is so easy:
>
> Just call setMultiLinesEnabled(True) on the items you generate.
>
> The attached patch does that for VariablesViewer.py.
>
> Andreas

-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list