┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/animatedheightwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedheightwidget.h')
-rw-r--r--src/animatedheightwidget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/animatedheightwidget.h b/src/animatedheightwidget.h
index 8f040d571..3933df93f 100644
--- a/src/animatedheightwidget.h
+++ b/src/animatedheightwidget.h
@@ -55,6 +55,13 @@ protected:
/** @returns whether this object is currently animating a visibility change. */
bool isAnimationRunning() const;
+protected:
+ /**
+ * Ignore PageUp/PageDown key events to prevent the internal QScrollArea
+ * (with an invisible scrollbar) from scrolling while editing inside child widgets.
+ */
+ bool eventFilter(QObject *obj, QEvent *event) override;
+
private:
using QWidget::hide; // Use QAbstractAnimation::setVisible() instead.
using QWidget::setVisible; // Makes sure that the setVisible() declaration above doesn't fully hide the one from QWidget so we can still use it privately.