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

List:       koffice-devel
Subject:    Re: Patch to fix multiple undo command on pasting page in kpresenter
From:       Pierre Stirnweiss <pstirnweiss () googlemail ! com>
Date:       2009-10-28 9:00:17
Message-ID: af76e3dc0910280200r78e90c03y3254914c7c52f33e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>
>
>
> That should be no problem as load on the shape is only called during
> loading
> the shape and not while it already has some content. So there should be no
> commands in the QTextDocument stack which will be undone by the application
> after loading.
>

Very true. That would clear the undoStack of the new QTextDocument. The
other QTextDocuments and their corresponding KoTextEditor shouldn't be
affected.
It is actually a pretty elegant solution.


Pierre

[Attachment #5 (text/html)]

<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br> \
<br> </div>That should be no problem as load on the shape is only called during \
loading<br> the shape and not while it already has some content. So there should be \
no<br> commands in the QTextDocument stack which will be undone by the \
application<br> after loading.<br></blockquote><div><br>Very true. That would clear \
the undoStack of the new QTextDocument. The other QTextDocuments and their \
corresponding KoTextEditor shouldn&#39;t be affected.<br>It is actually a pretty \
elegant solution.<br>

 </div></div><br>Pierre<br>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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