splash.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <qcursor.h>
00022 #include <qdesktopwidget.h>
00023
00024 #include <kapplication.h>
00025 #include <kglobalsettings.h>
00026 #include <kiconloader.h>
00027
00028 #include "splash.h"
00029
00030 using namespace Kontact;
00031
00032 Splash::Splash( QWidget *parent, const char *name )
00033 : QLabel( parent, name, WStyle_Customize | WStyle_Splash )
00034 {
00035 QPixmap splash( UserIcon( "splash" ) );
00036 setBackgroundPixmap( splash );
00037 resize( splash.width(), splash.height() );
00038
00039 QRect desk = KGlobalSettings::splashScreenDesktopGeometry();
00040
00041 setGeometry( ( desk.width() / 2 ) - ( width() / 2 ) + desk.left(),
00042 ( desk.height() / 2 ) - ( height() / 2 ) + desk.top(),
00043 width(), height() );
00044 }
00045
00046 #include "splash.moc"
This file is part of the documentation for kontact Library Version 3.2.2.