[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] resize rows in eric3 variable windows
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2006-05-25 13:03:43
Message-ID: 20060525130343.GB20725 () morpheus
[Download RAW message or body]
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
--
Today is the first day of the rest of the mess.
diff -ru eric-3.9.0/eric/Debugger/VariablesViewer.py eric-3.9.0.org/eric/Debugger/VariablesViewer.py
--- eric-3.9.0/eric/Debugger/VariablesViewer.py 2006-05-25 14:53:43.000000000 +0200
+++ eric-3.9.0.org/eric/Debugger/VariablesViewer.py 2006-05-25 14:53:10.000000000 +0200
@@ -400,8 +400,7 @@
else:
itm = self.generateItem(parent, dvar, value, dvtype)
-
- itm.setMultiLinesEnabled(True)
+
return itm
def getDispType(self, vtype):
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic