mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
added size contraints for zone view & scroll bars, fixing issue #34
This commit is contained in:
parent
c835a827b0
commit
40fbbc5982
4 changed files with 55 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ class QCheckBox;
|
|||
class GameScene;
|
||||
class ServerInfo_Card;
|
||||
class QGraphicsSceneMouseEvent;
|
||||
class QGraphicsSceneWheelEvent;
|
||||
|
||||
class TitleLabel : public QGraphicsWidget {
|
||||
Q_OBJECT
|
||||
|
|
@ -36,6 +37,7 @@ class ZoneViewWidget : public QGraphicsWidget {
|
|||
Q_OBJECT
|
||||
private:
|
||||
ZoneViewZone *zone;
|
||||
QGraphicsWidget *zoneContainer;
|
||||
|
||||
TitleLabel *titleLabel;
|
||||
QPushButton *closeButton;
|
||||
|
|
@ -48,6 +50,8 @@ signals:
|
|||
void closePressed(ZoneViewWidget *zv);
|
||||
private slots:
|
||||
void resizeToZoneContents();
|
||||
void handleWheelEvent(QGraphicsSceneWheelEvent *event);
|
||||
void handleScrollBarChange(int value);
|
||||
void zoneDeleted();
|
||||
void moveWidget(QPointF scenePos);
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue