1 /***************************************************************************
2 kstartuplogo.cpp - description
4 begin : Fri Dec 14 2001
5 copyright : (C) 2001 by Arnold Kraschinski
6 email : arnold.k67@gmx.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #include "kstartuplogo.h"
19 #include <kapplication.h>
20 #include <kstandarddirs.h>
21 #include <kglobalsettings.h>
23 KStartupLogo::KStartupLogo(QWidget
* parent
, const char *name
)
24 : QWidget(parent
,name
,WStyle_Customize
| WStyle_NoBorder
)
27 pm
.load(locate("appdata", "pics/startuplogo.png"));
28 setBackgroundPixmap(pm
);
29 QRect desk
= KGlobalSettings::splashScreenDesktopGeometry();
30 setGeometry(desk
.center().x()-pm
.width()/2, desk
.center().y()-pm
.height()/2,
31 pm
.width(),pm
.height());
34 KStartupLogo::~KStartupLogo(){
37 bool KStartupLogo::event(QEvent
* ev
){
39 return QWidget::event(ev
);
42 #include "kstartuplogo.moc"