[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] QAbstractItemView Question
From: Matt Chambers <chambers () imageworks ! com>
Date: 2006-11-20 18:51:05
Message-ID: 4561F919.9060709 () imageworks ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Andreas Pakulat wrotee
>> I can detect if one of these elements is not in the new ElementTree, but, how
>> do I get the info needed
>> to call beginRemoveRows( QModelIndex parent, int row, int col). I can get the
>> row,col no problem,
>> but how can I get the deleted items parent QModelIndex?
>>
>
> Well, you have to have some mapping from Element back to a proper index,
> i.e. you need a way to get the index for an Element in the tree. Then
> you can call parent() on that index.
>
> Andres
I remember reading something about how the indexes are temporary. I was
under the impression
that they would go away and be re-created as needed?
Matt
[Attachment #5 (text/html)]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas Pakulat wrotee
<blockquote cite="mid20061118093823.GB16501@morpheus.apaku.dnsalias.org"
type="cite">
<blockquote type="cite">
<pre wrap="">
I can detect if one of these elements is not in the new ElementTree, but, how
do I get the info needed
to call beginRemoveRows( QModelIndex parent, int row, int col). I can get the
row,col no problem,
but how can I get the deleted items parent QModelIndex?
</pre>
</blockquote>
<pre wrap=""><!---->
Well, you have to have some mapping from Element back to a proper index,
i.e. you need a way to get the index for an Element in the tree. Then
you can call parent() on that index.
Andres</pre>
</blockquote>
<br>
I remember reading something about how the indexes are temporary. I
was under the impression<br>
that they would go away and be re-created as needed? <br>
<br>
Matt<br>
</body>
</html>
_______________________________________________
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