mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-18 14:55:49 -04:00
Merge 8c031605e75c83bbe3141f84e7509a3b5eb688d3 into af2479da8dc0ff0c7104c4ccde1715b1c562dfdc
This commit is contained in:
commit
3bfa40a21b
@ -26,6 +26,7 @@
|
||||
#include <QMenu>
|
||||
#include <QPainter>
|
||||
#include <QScreen>
|
||||
#include <QScrollBar>
|
||||
#include <QShortcut>
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QWindow>
|
||||
@ -595,3 +596,12 @@ bool EntryView::isColumnHidden(int logicalIndex)
|
||||
{
|
||||
return header()->isSectionHidden(logicalIndex) || header()->sectionSize(logicalIndex) == 0;
|
||||
}
|
||||
|
||||
void EntryView::wheelEvent(QWheelEvent* event)
|
||||
{
|
||||
if (event->modifiers() & Qt::ShiftModifier) {
|
||||
horizontalScrollBar()->event(event);
|
||||
} else {
|
||||
QAbstractScrollArea::wheelEvent(event);
|
||||
}
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ protected:
|
||||
void focusInEvent(QFocusEvent* event) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void startDrag(Qt::DropActions supportedActions) override;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void emitEntryActivated(const QModelIndex& index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user