[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jr at jriddell.org
Tue Apr 12 17:54:55 UTC 2005


CVS commit by jriddell: 

Show startup logo outwith the Umbrello window.  Patch from Waldo Bastin.


  M +8 -4      main.cpp   1.23


--- kdesdk/umbrello/umbrello/main.cpp  #1.22:1.23
@@ -16,4 +16,6 @@
 #include "version.h"
 
+#include "kstartuplogo.h"
+
 #include <kaboutdata.h>
 #include <kapplication.h>
@@ -21,8 +23,9 @@
 #include <kconfig.h>
 #include <klocale.h>
-#include "kstartuplogo.h"
 #include <ktip.h>
-#include <unistd.h>
 #include <kdebug.h>
+#include <kwin.h>
+
+#include <unistd.h>
 
 static const char description[] =
@@ -59,8 +62,9 @@ int main(int argc, char *argv[]) {
                 bool showLogo = cfg -> readBoolEntry( "logo", true );
                 if (showLogo) {
-                        start_logo = new KStartupLogo(uml);
+                        start_logo = new KStartupLogo(0);
                         start_logo->setHideEnabled(true);
+                        KWin::setMainWindow(start_logo, uml->winId());
+                        KWin::setState(start_logo->winId(), NET::KeepAbove);
                         start_logo->show();
-                        start_logo->raise();
                         QApplication::flushX();
                 }






More information about the umbrello-devel mailing list