Qt 4.6 compile fix
This commit is contained in:
parent
cef4fb11f3
commit
e3c1ad2da6
2 changed files with 7 additions and 1 deletions
|
@ -60,7 +60,6 @@ ZoneViewWidget::ZoneViewWidget(Player *_player, CardZone *_origZone, int numberC
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
setZValue(2000000006);
|
setZValue(2000000006);
|
||||||
setFlag(ItemIgnoresTransformations);
|
setFlag(ItemIgnoresTransformations);
|
||||||
setAutoFillBackground(true);
|
|
||||||
|
|
||||||
QGraphicsLinearLayout *hbox = new QGraphicsLinearLayout(Qt::Horizontal);
|
QGraphicsLinearLayout *hbox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||||
titleLabel = new TitleLabel;
|
titleLabel = new TitleLabel;
|
||||||
|
@ -133,6 +132,12 @@ void ZoneViewWidget::retranslateUi()
|
||||||
shuffleCheckBox->setText(tr("shuffle when closing"));
|
shuffleCheckBox->setText(tr("shuffle when closing"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ZoneViewWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
|
{
|
||||||
|
painter->fillRect(boundingRect(), palette().color(QPalette::Window));
|
||||||
|
QGraphicsWidget::paint(painter, option, widget);
|
||||||
|
}
|
||||||
|
|
||||||
void ZoneViewWidget::moveWidget(QPointF scenePos)
|
void ZoneViewWidget::moveWidget(QPointF scenePos)
|
||||||
{
|
{
|
||||||
setPos(scenePos);
|
setPos(scenePos);
|
||||||
|
|
|
@ -56,6 +56,7 @@ public:
|
||||||
void retranslateUi();
|
void retranslateUi();
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event);
|
||||||
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue