moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kverbos / kverbos / kstartuplogo.cpp
blob40569b0ba1c966f1e9946e2acab7487209a79520
1 /***************************************************************************
2 kstartuplogo.cpp - description
3 -------------------
4 begin : Fri Dec 14 2001
5 copyright : (C) 2001 by Arnold Kraschinski
6 email : arnold.k67@gmx.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
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 )
26 QPixmap pm;
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){
38 raise();
39 return QWidget::event(ev);
42 #include "kstartuplogo.moc"