![]() |
Blamite Game Engine - Keystone
00367.02.08.23.1815.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Wrapper class around a QMdiArea, made to simplify skinning. More...
#include <SkinnableMdiArea.h>
Public Member Functions | |
SkinnableMdiArea (QWidget *parent=Q_NULLPTR) | |
~SkinnableMdiArea () | |
void | OnThemeChange (BlamEditorTheme *new_theme) |
Re-creates the pixmap when the theme is changed. More... | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
Paints the custom texture on top of the MDI area. More... | |
Wrapper class around a QMdiArea, made to simplify skinning.
The default QMdiArea cannot have its background changed through the use of stylesheets. In order to work around this, we use a wrapper class which will draw a resource texture on top of the area. This can be used to effectively change the background color, which is useful for themes like Midnight where the normally darker gray color that is used by default is overly bright compared to the rest of the UI.
SkinnableMdiArea::SkinnableMdiArea | ( | QWidget * | parent = Q_NULLPTR | ) |
SkinnableMdiArea::~SkinnableMdiArea | ( | ) |
|
virtual |
Re-creates the pixmap when the theme is changed.
new_theme | - The newly applied theme. |
Reimplemented from KeystoneThemeChangeReceiver.
|
protected |
Paints the custom texture on top of the MDI area.