Elaztek Developer Hub
Blamite Game Engine - Keystone  00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
SkinnableMdiArea Class Reference

Wrapper class around a QMdiArea, made to simplify skinning. More...

#include <SkinnableMdiArea.h>

+ Inheritance diagram for SkinnableMdiArea:
+ Collaboration diagram for SkinnableMdiArea:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SkinnableMdiArea()

SkinnableMdiArea::SkinnableMdiArea ( QWidget *  parent = Q_NULLPTR)

◆ ~SkinnableMdiArea()

SkinnableMdiArea::~SkinnableMdiArea ( )

Member Function Documentation

◆ OnEditorThemeChangeEvent()

void SkinnableMdiArea::OnEditorThemeChangeEvent ( EditorThemeChangeEvent *  event)

Re-creates the pixmap when the theme is changed.

Parameters
event- The theme change event that was fired.

◆ paintEvent()

void SkinnableMdiArea::paintEvent ( QPaintEvent *  event)
protected

Paints the custom texture on top of the MDI area.


The documentation for this class was generated from the following files: