qt 5.15 compatibility (#4027)

This commit is contained in:
ebbit1q 2020-06-19 16:50:09 +02:00 committed by GitHub
parent 0f0e0193c1
commit 7fa1936d0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 101 additions and 39 deletions

View file

@ -2,6 +2,7 @@
#define ZONEVIEWWIDGET_H
#include <QCheckBox>
#include <QGraphicsProxyWidget>
#include <QGraphicsWidget>
class QLabel;
@ -18,6 +19,16 @@ class QGraphicsSceneMouseEvent;
class QGraphicsSceneWheelEvent;
class QStyleOption;
class ScrollableGraphicsProxyWidget : public QGraphicsProxyWidget
{
Q_OBJECT
public slots:
void recieveWheelEvent(QGraphicsSceneWheelEvent *event)
{
wheelEvent(event);
}
};
class ZoneViewWidget : public QGraphicsWidget
{
Q_OBJECT
@ -27,6 +38,7 @@ private:
QPushButton *closeButton;
QScrollBar *scrollBar;
ScrollableGraphicsProxyWidget *scrollBarProxy;
QCheckBox sortByNameCheckBox;
QCheckBox sortByTypeCheckBox;
QCheckBox shuffleCheckBox;
@ -42,7 +54,6 @@ private slots:
void processSortByName(int value);
void processSetPileView(int value);
void resizeToZoneContents();
void handleWheelEvent(QGraphicsSceneWheelEvent *event);
void handleScrollBarChange(int value);
void zoneDeleted();
void moveEvent(QGraphicsSceneMoveEvent * /* event */);