prepare next background color for transparent widgets
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 14 May 2006 22:08:13 +0000 (22:08 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 14 May 2006 22:08:13 +0000 (22:08 +0000)
lib/gui/ewidget.cpp

index e050429..30602c5 100644 (file)
@@ -341,8 +341,13 @@ int eWidget::event(int event, void *data, void *data2)
                        }
                } else
                {
-                       if (m_have_background_color)
-                               painter.setBackgroundColor(m_background_color);
+                       eWidget *w = this;
+                       
+                       while (w && !w->m_have_background_color)
+                               w = w->m_parent;
+
+                       if (w)
+                               painter.setBackgroundColor(w->m_background_color);
                }
                break;
        }