mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23:57 -07:00
fix styles
This commit is contained in:
parent
a614dcee32
commit
02c6d0bf47
2 changed files with 65 additions and 66 deletions
|
|
@ -10,20 +10,21 @@
|
||||||
#include "view_zone.h"
|
#include "view_zone.h"
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QGraphicsView>
|
|
||||||
#include <QGraphicsLinearLayout>
|
#include <QGraphicsLinearLayout>
|
||||||
#include <QGraphicsProxyWidget>
|
#include <QGraphicsProxyWidget>
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
|
#include <QGraphicsView>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QStyleOption>
|
#include <QStyleOption>
|
||||||
#include <libcockatrice/protocol/pb/command_shuffle.pb.h>
|
#include <libcockatrice/protocol/pb/command_shuffle.pb.h>
|
||||||
|
|
||||||
namespace {
|
namespace
|
||||||
|
{
|
||||||
constexpr qreal kTitleBarHeight = 24.0;
|
constexpr qreal kTitleBarHeight = 24.0;
|
||||||
constexpr qreal kMinVisibleWidth = 100.0;
|
constexpr qreal kMinVisibleWidth = 100.0;
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param _player the player the cards were revealed to.
|
* @param _player the player the cards were revealed to.
|
||||||
|
|
|
||||||
|
|
@ -74,9 +74,7 @@ private:
|
||||||
QPointer<QGraphicsView> dragView;
|
QPointer<QGraphicsView> dragView;
|
||||||
|
|
||||||
void stopWindowDrag();
|
void stopWindowDrag();
|
||||||
QPointF draggedWindowPos(const QPoint &screenPos,
|
QPointF draggedWindowPos(const QPoint &screenPos, const QPointF &scenePos, const QPointF &buttonDownScenePos) const;
|
||||||
const QPointF &scenePos,
|
|
||||||
const QPointF &buttonDownScenePos) const;
|
|
||||||
|
|
||||||
void resizeScrollbar(qreal newZoneHeight);
|
void resizeScrollbar(qreal newZoneHeight);
|
||||||
signals:
|
signals:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue