Elaztek Developer Hub
Blamite Game Engine - Keystone  00367.02.08.23.1815.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:

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

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

◆ OnThemeChange()

void SkinnableMdiArea::OnThemeChange ( BlamEditorTheme new_theme)
virtual

Re-creates the pixmap when the theme is changed.

Parameters
new_theme- The newly applied theme.

Reimplemented from KeystoneThemeChangeReceiver.

◆ 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: