Add custom QStyle class to tab bar to fix render issue on macOS. (#3095)

* Add custom QStyle class to tab bar to fix render issue on macOS. fixes #3070

* clangify
This commit is contained in:
Nick Beeuwsaert 2018-02-08 08:39:29 -06:00 committed by ctrlaltca
parent 501e82f712
commit 2206328406
2 changed files with 28 additions and 0 deletions

View file

@ -4,7 +4,9 @@
#include "chatview/userlistProxy.h"
#include "deck_loader.h"
#include <QAbstractButton>
#include <QCommonStyle>
#include <QMap>
#include <QProxyStyle>
#include <QTabWidget>
class QMenu;
@ -30,6 +32,13 @@ class ServerInfo_User;
class GameReplay;
class DeckList;
class MacOSTabFixStyle : public QProxyStyle
{
Q_OBJECT
public:
QRect subElementRect(SubElement, const QStyleOption *, const QWidget *) const;
};
class CloseButton : public QAbstractButton
{
Q_OBJECT