--===============16396990124121169== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_+6Th/BXSnKHWTrS"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_+6Th/BXSnKHWTrS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline Okay... This is curious. The following snippet correctly implements undo/redo. The funny thing is, when I press the mouse button, nothing seems to happen -- the display is no= t=20 getting updated. When I undo and then redo the 'test' action, the red square _does_ appear. void KisToolTest::mousePress(QMouseEvent *e) { Q_INT32 x =3D e->pos().x(); Q_INT32 y =3D e->pos().y(); KisImageSP img =3D m_view -> currentImg(); if (img) { KisPaintDeviceSP device =3D img -> activeDevice(); if (device) { KisPainter p( device ); p.beginTransaction( "Test" ); p.fillRect( x, y, 10, 10, KoColor(QColor( "red" )) ); m_doc->addCommand(p.endTransaction()); device->anchor(); } } m_view -> updateCanvas(x, y, 10, 10); } Oh, and this appears on the console: kdecore (KAction): WARNING: KAction::updateShortcut(): name =3D "edit_undo"= , cut=20 =3D Ctrl+Z; No KAccel, probably missing a parent collection When using the 'tool'. =2D-=20 Boudewijn Rempt | http://www.valdyas.org/index2.html --Boundary-02=_+6Th/BXSnKHWTrS Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/hT6+daCcgCmN5d8RAlQ2AJkBFuqBohckEQ/qPR5QIjGBDRVERgCfcrCk IRz04gvuaHN+Ky4sSpH9SPI= =gS6n -----END PGP SIGNATURE----- --Boundary-02=_+6Th/BXSnKHWTrS-- --===============16396990124121169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@mail.kde.org http://mail.kde.org/mailman/listinfo/kimageshop --===============16396990124121169==--