![]() |
Blamite Game Engine - Keystone
00386.06.16.23.0646.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 | OnEditorThemeChangeEvent (EditorThemeChangeEvent *event) |
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 | ( | ) |
void SkinnableMdiArea::OnEditorThemeChangeEvent | ( | EditorThemeChangeEvent * | event | ) |
Re-creates the pixmap when the theme is changed.
event | - The theme change event that was fired. |
|
protected |
Paints the custom texture on top of the MDI area.