added size contraints for zone view & scroll bars, fixing issue #34

This commit is contained in:
Max-Wilhelm Bruker 2012-04-01 14:01:20 +02:00
parent c835a827b0
commit 40fbbc5982
4 changed files with 55 additions and 4 deletions

View file

@ -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: