Relicense all GPLv2 only code to GPLv2+.
[kdenetwork.git] / kget / ui / splash.h
blob30e473a48b2858c09f325031d206880b6860672d
1 /* This file is part of the KDE project
3 Copyright (C) 2004 - 2005 KGet Developers <kget@kde.org>
4 Splash.cpp/.h taken from Amarok. Thanks to Amarok's authors, cool piece
5 of code.. and our favourite player!
6 Copyright (C) 2003 by Christian Muehlhaeuser <muesli@chareit.net>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
14 #ifndef SPLASH_H
15 #define SPLASH_H
17 #include <QPixmap>
18 #include <QWidget>
19 #include <QMouseEvent>
20 #include <QPaintEvent>
22 class Splash : public QWidget
24 Q_OBJECT
26 public:
27 Splash(const QString& imagePath);
29 public slots:
30 void removeSplash(int timeout = 500);
32 protected:
33 void paintEvent(QPaintEvent*);
34 void mousePressEvent(QMouseEvent*);
36 static const int SPLASH_DURATION = 15000;
38 QPixmap cachedPixmap;
41 #endif