mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix repaints etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5266 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4e672b30f3
commit
7bf3b1dd13
@ -1,3 +1,9 @@
|
||||
2002-09-11 John Levon <levon@movementarian.org>
|
||||
|
||||
* qscreen.C: use repaint() not update() for immediate change
|
||||
|
||||
* QContentPane.C: warning fix
|
||||
|
||||
2002-09-11 John Levon <levon@movementarian.org>
|
||||
|
||||
* qfont_metrics.C: fix button metrics
|
||||
|
@ -160,7 +160,7 @@ void QContentPane::mouseDoubleClickEvent(QMouseEvent * e)
|
||||
dc_event_ = double_click(e);
|
||||
|
||||
// doubleClickInterval() is just too long.
|
||||
QTimer::singleShot(QApplication::doubleClickInterval() / 1.5,
|
||||
QTimer::singleShot(int(QApplication::doubleClickInterval() / 1.5),
|
||||
this, SLOT(doubleClickTimeout()));
|
||||
}
|
||||
|
||||
|
@ -21,11 +21,6 @@ QCommandBuffer
|
||||
|
||||
- fix !! I HATE Qt
|
||||
|
||||
QContentPane
|
||||
|
||||
- figure out why a scroll doesn't update quickly, which leaves cursor artifacts
|
||||
whilst holding down page down etc.
|
||||
|
||||
QDocument
|
||||
|
||||
- implement me. Need MVC (Edwin is on this)
|
||||
|
@ -146,11 +146,17 @@ void QScreen::hideCursor()
|
||||
}
|
||||
|
||||
|
||||
void QScreen::expose(int x, int y, int exp_width, int exp_height)
|
||||
void QScreen::expose(int x, int y, int w, int h)
|
||||
{
|
||||
lyxerr[Debug::GUI] << "expose " << exp_width << "x" << exp_height
|
||||
lyxerr[Debug::GUI] << "expose " << w << "x" << h
|
||||
<< "+" << x << "+" << y << endl;
|
||||
owner_.getContent()->update(x, y, exp_width, exp_height);
|
||||
|
||||
// if we're scrolling, we want immediate paint, otherwise not.
|
||||
QWidget * content(owner_.getContent());
|
||||
if (content->width() == w && content->height() == h)
|
||||
content->repaint(x, y, w, h);
|
||||
else
|
||||
content->update(x, y, w, h);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user