Commit 2cfe3a8e authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

avoid changing QTabBar scrolling

use the normal Qt tab bar scrolling
perhaps this fixes high precision scrolling

in any case, if high precision scrolling is
still not working after this change, this
needs to be reported upstream to Qt

BUG: 455556
parent cd3ac77e
Pipeline #201220 passed with stage
in 5 minutes and 9 seconds
......@@ -278,16 +278,6 @@ void KateTabBar::contextMenuEvent(QContextMenuEvent *ev)
void KateTabBar::wheelEvent(QWheelEvent *event)
// cycle through the tabs
const int delta = event->angleDelta().x() + event->angleDelta().y();
const int idx = (delta > 0) ? prevTab() : nextTab();
void KateTabBar::setTabDocument(int idx, KTextEditor::Document *doc)
QVariant data = ensureValidTabData(idx);
......@@ -127,9 +127,6 @@ protected:
//! Request context menu
void contextMenuEvent(QContextMenuEvent *ev) override;
//! Cycle through tabs
void wheelEvent(QWheelEvent *event) override;
using QTabBar::addTab;
using QTabBar::insertTab;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment