From 956270cc3b4c8993fb982b6292e0a60b626bfd2a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 23 Mar 2006 11:20:58 +0000 Subject: [PATCH] use update instead of repaint when changing cursor git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13460 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/ChangeLog | 5 +++++ src/frontends/qt2/qscreen.C | 4 ++-- status.14x | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 4de25287bc..06e494835c 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2006-03-23 Jean-Marc Lasgouttes + + * qscreen.C (showCursor, removeCursor): just update, instead of a + full repaint. + 2006-03-23 Jürgen Spitzmüller * QPrefs.C (apply, update_contents): diff --git a/src/frontends/qt2/qscreen.C b/src/frontends/qt2/qscreen.C index 2aff4ded17..53ae53d284 100644 --- a/src/frontends/qt2/qscreen.C +++ b/src/frontends/qt2/qscreen.C @@ -144,7 +144,7 @@ void QScreen::showCursor(int x, int y, int h, Cursor_Shape shape) break; } - owner_.getContent()->repaint( + owner_.getContent()->update( cursor_x_, cursor_y_, cursor_w_, cursor_h_); } @@ -160,5 +160,5 @@ void QScreen::removeCursor() &nocursor_pixmap_, 0, 0, cursor_w_, cursor_h_); owner_.getContent() - ->repaint(cursor_x_, cursor_y_, cursor_w_, cursor_h_); + ->update(cursor_x_, cursor_y_, cursor_w_, cursor_h_); } diff --git a/status.14x b/status.14x index b90607a789..fb77ca1f08 100644 --- a/status.14x +++ b/status.14x @@ -81,6 +81,8 @@ What's new - Fix Find&Replace with sciword bindings. +- small optimizations in the way the Qt frontend updates the screen, + - Fix crash when deleting row/column in a math array - remove zombie wheel mouse spin box from the qt preferences dialog (bug 783).