summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2014-01-22 22:19:21 (GMT)
committerMilian Wolff <mail@milianw.de>2014-01-22 22:20:12 (GMT)
commit712e671041265164536cce5fda6b3b7bac1a12c4 (patch)
tree40738e9ca586116c11587dc99768c0f726131b6d
parent2b0c06866538adf3acf5a150c95c5fd4d9eff3d0 (diff)
Fix painting bug when scrolling while floating widgets are shown.
Signed off by Dominik Haumann, hopefully not needed for Qt5/KF5 but needs to be backported probably.
-rw-r--r--part/view/kateviewinternal.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/part/view/kateviewinternal.cpp b/part/view/kateviewinternal.cpp
index 10cb856..eb76914 100644
--- a/part/view/kateviewinternal.cpp
+++ b/part/view/kateviewinternal.cpp
@@ -42,6 +42,7 @@
#include "spellcheck/spellingmenu.h"
#include "kateviewaccessible.h"
#include "katetextanimation.h"
+#include "katemessagewidget.h"
#include <ktexteditor/movingrange.h>
#include <kcursor.h>
@@ -484,6 +485,14 @@ void KateViewInternal::scrollPos(KTextEditor::Cursor& c, bool force, bool called
scroll(0, scrollHeight, rect());
m_leftBorder->scroll(0, scrollHeight);
+ if ((m_view->m_floatTopMessageWidget && m_view->m_floatTopMessageWidget->isVisible())
+ || (m_view->m_bottomMessageWidget && m_view->m_bottomMessageWidget->isVisible()))
+ {
+ // NOTE: on some machines we must update if the floating widget is visible
+ // otherwise strange painting bugs may occur during scrolling...
+ update();
+ }
+
emit m_view->verticalScrollPositionChanged( m_view, c );
emit m_view->displayRangeChanged(m_view);
return;