mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
qt 5.15 compatibility (#4027)
This commit is contained in:
parent
0f0e0193c1
commit
7fa1936d0f
27 changed files with 101 additions and 39 deletions
|
|
@ -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 */);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue