6#ifndef DECK_PREVIEW_WIDGET_H
7#define DECK_PREVIEW_WIDGET_H
9#include <QAbstractItemView>
10#include <QAbstractScrollArea>
11#include <QApplication>
19#include <qtmetamacros.h>
40 const QString &_filePath);
78 void setTags(
const QStringList &tags);
83 bool eventFilter(QObject *watched, QEvent *event)
override;
86 [[nodiscard]]
int row()
const;
129 if (event->type() == QEvent::Wheel) {
130 if (
auto *combo = qobject_cast<QComboBox *>(obj)) {
132 if (!combo->view()->isVisible()) {
134 QWidget *parent = combo->parentWidget();
136 if (
auto *scroll = qobject_cast<QAbstractScrollArea *>(parent)) {
137 QApplication::sendEvent(scroll->viewport(), event);
140 parent = parent->parentWidget();
147 return QObject::eventFilter(obj, event);
Definition remote_connection_controller.h:20
The list model backing the Visual Deck Storage widget tree.
Definition visual_deck_storage_model.h:103
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition loaded_deck.h:14