mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
replace windows11 with fusion for the view windows
This commit is contained in:
parent
e977f123ce
commit
06f9558ac2
1 changed files with 6 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QStyle>
|
#include <QStyle>
|
||||||
|
#include <QStyleFactory>
|
||||||
#include <QStyleOption>
|
#include <QStyleOption>
|
||||||
#include <libcockatrice/protocol/pb/command_shuffle.pb.h>
|
#include <libcockatrice/protocol/pb/command_shuffle.pb.h>
|
||||||
|
|
||||||
|
|
@ -46,6 +47,11 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
||||||
bool _isReversed)
|
bool _isReversed)
|
||||||
: QGraphicsWidget(0, Qt::Window), canBeShuffled(_origZone->getIsShufflable()), player(_player)
|
: QGraphicsWidget(0, Qt::Window), canBeShuffled(_origZone->getIsShufflable()), player(_player)
|
||||||
{
|
{
|
||||||
|
// workaround for windows11 theme completely breaking on our zonewidgets
|
||||||
|
if (style()->name() == "windows11") {
|
||||||
|
setStyle(QStyleFactory::create("Fusion"));
|
||||||
|
}
|
||||||
|
|
||||||
setAcceptHoverEvents(true);
|
setAcceptHoverEvents(true);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
setZValue(ZValues::ZONE_VIEW_WIDGET);
|
setZValue(ZValues::ZONE_VIEW_WIDGET);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue