* focusInEvent(): start the blinking cursor after the resize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16366
a592a061-630c-0410-9148-
cb99ea01b6c8
setMinimumSize(100, 70);
viewport()->setAutoFillBackground(false);
setMinimumSize(100, 70);
viewport()->setAutoFillBackground(false);
- viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
+ // We don't need double-buffering nor SystemBackground on
+ // the viewport because we have our own backing pixmap.
+ viewport()->setAttribute(Qt::WA_NoSystemBackground);
+
setFocusPolicy(Qt::WheelFocus);
viewport()->setCursor(Qt::IBeamCursor);
setFocusPolicy(Qt::WheelFocus);
viewport()->setCursor(Qt::IBeamCursor);
// in BufferList that could be connected to the different tabbars.
lyx_view_.updateTab();
// in BufferList that could be connected to the different tabbars.
lyx_view_.updateTab();
- startBlinkingCursor();
-
//FIXME: Use case: Two windows share the same buffer.
// The first window is resize. This modify the inner Buffer
// structure because Paragraph has a notion of line break and
//FIXME: Use case: Two windows share the same buffer.
// The first window is resize. This modify the inner Buffer
// structure because Paragraph has a notion of line break and
// even though those line breaks are not adapted to the second
// BufferView width... such is life!
resizeBufferView();
// even though those line breaks are not adapted to the second
// BufferView width... such is life!
resizeBufferView();
+
+ startBlinkingCursor();