splash.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <kapplication.h>
00024 #include <kstandarddirs.h>
00025 #include <kglobalsettings.h>
00026
00027 #include "splash.h"
00028
00029 using namespace KSync;
00030
00031 Splash::Splash()
00032 : QWidget( 0, "splash", WStyle_Splash | WStyle_Customize | WDestructiveClose )
00033 {
00034 QPixmap splash;
00035 splash.load(locate("appdata", "pics/startlogo.png") );
00036 setBackgroundPixmap(splash );
00037
00038 QRect desk = KGlobalSettings::splashScreenDesktopGeometry();
00039 setGeometry(desk.center().x()-splash.width()/2,
00040 desk.center().y()-splash.height()/2,
00041 splash.width(),
00042 splash.height() );
00043 show();
00044 }
00045
00046 Splash::~Splash()
00047 {
00048
00049 }
This file is part of the documentation for kitchensync Library Version 3.3.2.