2 * \file FormSplashBase.C
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
11 #include <qapplication.h>
16 #include "FormSplashImpl.h"
18 #include "support/filetools.h"
21 FormSplashBase::FormSplashBase( QWidget* parent, const char* name, WFlags fl, bool modal )
22 : QFrame( parent, name, fl, modal)
24 string banner_file = LibFileSearch("images", "banner", "xpm");
25 if (banner_file.empty())
28 QPixmap pm(tostr(banner_file).c_str());
32 setBackgroundPixmap(pm);
34 setGeometry(QApplication::desktop()->width ()/2-w/2,
35 QApplication::desktop()->height()/2-h/2,
38 QTimer::singleShot( 5*1000, this, SLOT(hide()) );
41 FormSplashBase::~FormSplashBase()
46 void FormSplashBase::mousePressEvent( QMouseEvent * )