diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-12-22 02:08:19 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-12-22 02:08:19 +0000 |
| commit | db6ca522bdfbde29c214b41435a10876ff72a0a4 (patch) | |
| tree | d43a7d31e1fbd5fc9a3b95839cf8e46c62af5e76 /lib/gui/ewindow.cpp | |
| parent | eb47577c32b49a28eb7986b0fd86ed0d76207150 (diff) | |
| download | enigma2-db6ca522bdfbde29c214b41435a10876ff72a0a4.tar.gz enigma2-db6ca522bdfbde29c214b41435a10876ff72a0a4.zip | |
gui: experimental Z order for root widgets
Diffstat (limited to 'lib/gui/ewindow.cpp')
| -rw-r--r-- | lib/gui/ewindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index 06827a9e..f8984729 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -6,7 +6,7 @@ #include <lib/gdi/epng.h> -eWindow::eWindow(eWidgetDesktop *desktop): eWidget(0) +eWindow::eWindow(eWidgetDesktop *desktop, int z): eWidget(0) { m_flags = 0; /* ask style manager for current style */ @@ -22,12 +22,14 @@ eWindow::eWindow(eWidgetDesktop *desktop): eWidget(0) style = new eWindowStyleSimple(); setStyle(style); + + setZPosition(z); /* must be done before addRootWidget */ /* we are the parent for the child window. */ /* as we are in the constructor, this is thread safe. */ m_child = this; m_child = new eWidget(this); - desktop->addRootWidget(this, 0); + desktop->addRootWidget(this); } eWindow::~eWindow() |
